mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails
This commit is contained in:
@@ -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 ||
|
||||
|
Reference in New Issue
Block a user