forked from mirror/OpenTTD
(svn r772) Whoops, I know. Do not consider pointer to be a boolean value. Sorry 'bout that, sirs.
This commit is contained in:
2
newgrf.c
2
newgrf.c
@@ -1990,7 +1990,7 @@ void InitNewGRFFile(const char *filename, int sprite_offset)
|
|||||||
struct GRFFile *newfile;
|
struct GRFFile *newfile;
|
||||||
|
|
||||||
newfile = GetFileByFilename(filename);
|
newfile = GetFileByFilename(filename);
|
||||||
if (newfile) {
|
if (newfile != NULL) {
|
||||||
/* We already loaded it once. */
|
/* We already loaded it once. */
|
||||||
newfile->sprite_offset = sprite_offset;
|
newfile->sprite_offset = sprite_offset;
|
||||||
_cur_grffile = newfile;
|
_cur_grffile = newfile;
|
||||||
|
Reference in New Issue
Block a user