mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r772) Whoops, I know. Do not consider pointer to be a boolean value. Sorry 'bout that, sirs.
This commit is contained in:
parent
f012e15c95
commit
34c89d6896
2
newgrf.c
2
newgrf.c
@ -1990,7 +1990,7 @@ void InitNewGRFFile(const char *filename, int sprite_offset)
|
||||
struct GRFFile *newfile;
|
||||
|
||||
newfile = GetFileByFilename(filename);
|
||||
if (newfile) {
|
||||
if (newfile != NULL) {
|
||||
/* We already loaded it once. */
|
||||
newfile->sprite_offset = sprite_offset;
|
||||
_cur_grffile = newfile;
|
||||
|
Loading…
Reference in New Issue
Block a user