mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codechange: replace 'new (index) PoolItem(...' with 'PoolItem::CreateAtIndex(index, ...'
This commit is contained in:
@@ -49,7 +49,7 @@ struct OBJSChunkHandler : ChunkHandler {
|
||||
|
||||
int index;
|
||||
while ((index = SlIterateArray()) != -1) {
|
||||
Object *o = new (ObjectID(index)) Object();
|
||||
Object *o = Object::CreateAtIndex(ObjectID(index));
|
||||
SlObject(o, slt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user