summaryrefslogtreecommitdiff
path: root/src/queue.cpp
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
commitd73c1fa7bfed01a187e14c4d86cde70e7121c51b (patch)
tree50574d6b6befd846433d33e7a7a619e719b57d0a /src/queue.cpp
parent8beca127ddf8f97b76c4bd3491ead1f6954b115d (diff)
downloadopenttd-d73c1fa7bfed01a187e14c4d86cde70e7121c51b.tar.xz
(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails
Diffstat (limited to 'src/queue.cpp')
-rw-r--r--src/queue.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/queue.cpp b/src/queue.cpp
index d84efb1ba..50ce7d289 100644
--- a/src/queue.cpp
+++ b/src/queue.cpp
@@ -34,7 +34,6 @@ static bool InsSort_Push(Queue *q, void *item, int priority)
{
InsSortNode *newnode = MallocT<InsSortNode>(1);
- if (newnode == NULL) return false;
newnode->item = item;
newnode->priority = priority;
if (q->data.inssort.first == NULL ||