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:
@@ -50,7 +50,7 @@ struct GRPSChunkHandler : ChunkHandler {
|
||||
int index;
|
||||
|
||||
while ((index = SlIterateArray()) != -1) {
|
||||
Group *g = new (index) Group();
|
||||
Group *g = new (GroupID(index)) Group();
|
||||
SlObject(g, slt);
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_189)) g->parent = GroupID::Invalid();
|
||||
|
||||
Reference in New Issue
Block a user