diff options
author | pasky <pasky@openttd.org> | 2004-11-22 22:52:01 +0000 |
---|---|---|
committer | pasky <pasky@openttd.org> | 2004-11-22 22:52:01 +0000 |
commit | 34c89d689600f22aeb52acb6b5a61ea2e276e619 (patch) | |
tree | 111f5d47179c19ca486c601be69d09aa56c5c798 | |
parent | f012e15c953f7d6a24f9d063123b41739060782f (diff) | |
download | openttd-34c89d689600f22aeb52acb6b5a61ea2e276e619.tar.xz |
(svn r772) Whoops, I know. Do not consider pointer to be a boolean value. Sorry 'bout that, sirs.
-rw-r--r-- | newgrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |