Fixed: Servers compilation

This commit is contained in:
kervala 2016-12-19 09:25:51 +01:00
parent 5152d83666
commit 1fdd44a673
6 changed files with 10 additions and 10 deletions

View file

@ -282,10 +282,10 @@ CMoveGrid<T, CELLS, CSIZE>::~CMoveGrid()
while ((node = cellNode->NodeList.getHead()) != NULL) while ((node = cellNode->NodeList.getHead()) != NULL)
{ {
cellNode->NodeList.remove(node); cellNode->NodeList.remove(node);
_NodeAllocator.free(node); _NodeAllocator.freeBlock(node);
} }
list.remove(cellNode); list.remove(cellNode);
_CellNodeAllocator.free(cellNode); _CellNodeAllocator.freeBlock(cellNode);
} }
} }
} }

View file

@ -227,7 +227,7 @@ CMoveGrid<T, CELLS, CSIZE>::~CMoveGrid()
while ((node = list.getHead()) != NULL) while ((node = list.getHead()) != NULL)
{ {
list.remove(node); list.remove(node);
_NodeAllocator.free(node); _NodeAllocator.freeBlock(node);
} }
} }
} }
@ -282,7 +282,7 @@ void CMoveGrid<T, CELLS, CSIZE>::remove(CIterator &it)
it._Node = NULL; it._Node = NULL;
_NodeAllocator.free(node); _NodeAllocator.freeBlock(node);
} }

View file

@ -191,7 +191,7 @@ public:
static CCell *create() { return _CellAllocator.allocate(); } static CCell *create() { return _CellAllocator.allocate(); }
/// Removes an entity (delete equivalent). /// Removes an entity (delete equivalent).
static void remove(CCell *cell) { _CellAllocator.free(cell); } static void remove(CCell *cell) { _CellAllocator.freeBlock(cell); }
private: private:

View file

@ -381,10 +381,10 @@ void CMoveGrid<T, CELLS, CSIZE>::clear()
while ((node = cellNode->NodeList.getHead()) != NULL) while ((node = cellNode->NodeList.getHead()) != NULL)
{ {
cellNode->NodeList.remove(node); cellNode->NodeList.remove(node);
_NodeAllocator.free(node); _NodeAllocator.freeBlock(node);
} }
list.remove(cellNode); list.remove(cellNode);
_CellNodeAllocator.free(cellNode); _CellNodeAllocator.freeBlock(cellNode);
} }
} }
} }
@ -482,7 +482,7 @@ void CMoveGrid<T, CELLS, CSIZE>::remove(CIterator &it)
removeNode(it); removeNode(it);
it._Node = NULL; it._Node = NULL;
_NodeAllocator.free(node); _NodeAllocator.freeBlock(node);
} }

View file

@ -67,7 +67,7 @@ void CWorldEntity::remove(CWorldEntity* entity)
{ {
CWorldPositionManager::_PrimitivedList.erase(entity->PrimIterator); CWorldPositionManager::_PrimitivedList.erase(entity->PrimIterator);
} }
_EntityAllocator.free(entity); _EntityAllocator.freeBlock(entity);
} }

View file

@ -461,7 +461,7 @@ public:
static CPlayerInfos *create() { return _PlayerAllocator.allocate(); } static CPlayerInfos *create() { return _PlayerAllocator.allocate(); }
/// Removes an entity (delete equivalent). /// Removes an entity (delete equivalent).
static void remove(CPlayerInfos *player) { _PlayerAllocator.free(player); } static void remove(CPlayerInfos *player) { _PlayerAllocator.freeBlock(player); }
private: private: