diff options
author | rubidium <rubidium@openttd.org> | 2007-08-02 12:22:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-02 12:22:40 +0000 |
commit | 53e6da1752c616388984c8906eb63673fb3b4050 (patch) | |
tree | 7b3d74bfcae924abd1c651969e8045c4b22c5cc9 /src/oldpool.h | |
parent | e7d2918c0cdb3d58aa066c1497f7e4946ef2cb6f (diff) | |
download | openttd-53e6da1752c616388984c8906eb63673fb3b4050.tar.xz |
(svn r10750) -Codechange: make the waypoint struct use the new poolitem class as super class.
Diffstat (limited to 'src/oldpool.h')
-rw-r--r-- | src/oldpool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oldpool.h b/src/oldpool.h index 6802cb63e..37154897e 100644 --- a/src/oldpool.h +++ b/src/oldpool.h @@ -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()); |