branch | NewGRF_ports |
changeset 6872 | 1c4a4a609f85 |
parent 6719 | 4cc327ad39d5 |
child 10429 | 1b99254f9607 |
--- a/src/misc/fixedsizearray.hpp Mon Dec 03 23:39:38 2007 +0000 +++ b/src/misc/fixedsizearray.hpp Tue Jan 22 21:00:30 2008 +0000 @@ -34,7 +34,7 @@ CFixedSizeArrayT() { // allocate block for header + items (don't construct items) - m_items = (Titem*)(((int8*)malloc(ThdrSize + Tcapacity * sizeof(Titem))) + ThdrSize); + m_items = (Titem*)((MallocT<int8>(ThdrSize + Tcapacity * sizeof(Titem))) + ThdrSize); SizeRef() = 0; // initial number of items RefCnt() = 1; // initial reference counter }