--- a/src/queue.cpp Mon Dec 03 23:39:38 2007 +0000
+++ b/src/queue.cpp Tue Jan 22 21:00:30 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