Codechange: do not use MallocT for the pool
Needed to make the placement new operator use Tindex over size_t because of ambiguity for the delete operator variant that also has the size.
This commit is contained in:
@@ -45,7 +45,7 @@ struct ERNWChunkHandler : ChunkHandler {
|
||||
int index;
|
||||
|
||||
while ((index = SlIterateArray()) != -1) {
|
||||
EngineRenew *er = new (index) EngineRenew();
|
||||
EngineRenew *er = new (EngineRenewID(index)) EngineRenew();
|
||||
SlObject(er, slt);
|
||||
|
||||
/* Advanced vehicle lists, ungrouped vehicles got added */
|
||||
|
||||
Reference in New Issue
Block a user