summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2004-11-22 22:52:01 +0000
committerpasky <pasky@openttd.org>2004-11-22 22:52:01 +0000
commit34c89d689600f22aeb52acb6b5a61ea2e276e619 (patch)
tree111f5d47179c19ca486c601be69d09aa56c5c798 /newgrf.c
parentf012e15c953f7d6a24f9d063123b41739060782f (diff)
downloadopenttd-34c89d689600f22aeb52acb6b5a61ea2e276e619.tar.xz
(svn r772) Whoops, I know. Do not consider pointer to be a boolean value. Sorry 'bout that, sirs.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 52ca90575..bf70a8596 100644
--- a/newgrf.c
+++ b/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;