summaryrefslogtreecommitdiff
path: root/src/newgrf_storage.h
diff options
context:
space:
mode:
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