diff options
author | smatz <smatz@openttd.org> | 2010-09-06 16:02:42 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-09-06 16:02:42 +0000 |
commit | 29cec22a2e5e0b39437714cbb26c9ad4a5c9bdea (patch) | |
tree | 0984073bb088b9427147059fcc441e5a63102e38 | |
parent | 8909a5a2da87df0624a075b7eda6be346958b17e (diff) | |
download | openttd-29cec22a2e5e0b39437714cbb26c9ad4a5c9bdea.tar.xz |
(svn r20756) -Cleanup: no need to check return value of CallocT
-rw-r--r-- | src/newgrf.cpp | 2 |
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; |