summaryrefslogtreecommitdiff
path: root/src/oldpool.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-08 15:47:23 +0000
committerglx <glx@openttd.org>2007-12-08 15:47:23 +0000
commitb47bce651e64ddeab722f599c0a682281b626c45 (patch)
treea45a623dcb65481ea9d84f6b9645584f075b7849 /src/oldpool.cpp
parent2256d9d378365850ba247e7e02631cf458a4fca2 (diff)
downloadopenttd-b47bce651e64ddeab722f599c0a682281b626c45.tar.xz
(svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions.
Diffstat (limited to 'src/oldpool.cpp')
-rw-r--r--src/oldpool.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/oldpool.cpp b/src/oldpool.cpp
index df4731777..3d8326828 100644
--- a/src/oldpool.cpp
+++ b/src/oldpool.cpp
@@ -55,12 +55,9 @@ bool OldMemoryPoolBase::AddBlockToPool()
/* Increase the poolsize */
this->blocks = ReallocT(this->blocks, this->current_blocks + 1);
- if (this->blocks == NULL) error("Pool: (%s) could not allocate memory for blocks", this->name);
/* Allocate memory to the new block item */
this->blocks[this->current_blocks] = MallocT<byte>(this->item_size * (1 << this->block_size_bits));
- if (this->blocks[this->current_blocks] == NULL)
- error("Pool: (%s) could not allocate memory for blocks", this->name);
/* Clean the content of the new block */
memset(this->blocks[this->current_blocks], 0, this->item_size * (1 << this->block_size_bits));