(svn r10750) -Codechange: make the waypoint struct use the new poolitem class as super class.

This commit is contained in:
rubidium
2007-08-02 12:22:40 +00:00
parent cab6275511
commit dd666a80d5
3 changed files with 52 additions and 83 deletions

View File

@@ -188,7 +188,7 @@ struct PoolItem {
* @param size the size of the variable (unused)
* @return the memory that is 'allocated'
*/
void *operator new (size_t size)
void *operator new(size_t size)
{
return AllocateRaw();
}
@@ -208,7 +208,7 @@ struct PoolItem {
* @param index the index of the object
* @return the memory that is 'allocated'
*/
void *operator new (size_t size, int index)
void *operator new(size_t size, int index)
{
if (!Tpool->AddBlockIfNeeded(index)) error("%s: failed loading savegame: too many %s", Tpool->GetName(), Tpool->GetName());