summaryrefslogtreecommitdiff
path: root/src/newgrf_storage.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-24 20:59:17 +0000
committersmatz <smatz@openttd.org>2009-02-24 20:59:17 +0000
commit34bfb3510567e66b6bb584ad7f8ec48ff2b5095e (patch)
tree50574d6b6befd846433d33e7a7a619e719b57d0a /src/newgrf_storage.h
parent471c770a08f159af22ce9d7dcdbbb0e675ca8bac (diff)
downloadopenttd-34bfb3510567e66b6bb584ad7f8ec48ff2b5095e.tar.xz
(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails
Diffstat (limited to 'src/newgrf_storage.h')
-rw-r--r--src/newgrf_storage.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/newgrf_storage.h b/src/newgrf_storage.h
index e3320d055..be576f9c2 100644
--- a/src/newgrf_storage.h
+++ b/src/newgrf_storage.h
@@ -75,8 +75,6 @@ struct PersistentStorageArray : BaseStorageArray {
/* We do not have made a backup; lets do so */
if (this->prev_storage != NULL) {
this->prev_storage = MallocT<TYPE>(SIZE);
- if (this->prev_storage == NULL) return;
-
memcpy(this->prev_storage, this->storage, sizeof(this->storage));
/* We only need to register ourselves when we made the backup