summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 7dd07a16f..d26e8973d 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -7108,8 +7108,6 @@ static void InitNewGRFFile(const GRFConfig *config, int sprite_offset)
newfile = CallocT<GRFFile>(1);
- if (newfile == NULL) error ("Out of memory");
-
newfile->filename = strdup(config->filename);
newfile->sprite_offset = sprite_offset;