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 | dd666a80d5fdf68820b1acfdc59d701af4185291 (patch) | |
tree | 7b3d74bfcae924abd1c651969e8045c4b22c5cc9 /src/oldpool.h | |
parent | cab6275511f9658a7950618d8370200c34828e14 (diff) | |
download | openttd-dd666a80d5fdf68820b1acfdc59d701af4185291.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()); |