summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;