src/queue.cpp
branchnoai
changeset 9723 eee46cb39750
parent 9505 9711235f5693
child 10455 22c441f5adf9
--- a/src/queue.cpp	Fri Nov 23 16:59:30 2007 +0000
+++ b/src/queue.cpp	Wed Jan 09 18:11:12 2008 +0000
@@ -5,7 +5,7 @@
 #include "stdafx.h"
 #include "openttd.h"
 #include "queue.h"
-#include "helpers.hpp"
+#include "core/alloc_func.hpp"
 
 
 /*
@@ -310,7 +310,7 @@
 	h->hash = hash;
 	h->size = 0;
 	h->num_buckets = num_buckets;
-	h->buckets = (HashNode*)malloc(num_buckets * (sizeof(*h->buckets) + sizeof(*h->buckets_in_use)));
+	h->buckets = (HashNode*)MallocT<byte>(num_buckets * (sizeof(*h->buckets) + sizeof(*h->buckets_in_use)));
 #ifdef HASH_DEBUG
 	debug("Buckets = %p", h->buckets);
 #endif