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 LEAEChunkHandler : ChunkHandler {
|
||||
|
||||
int index;
|
||||
while ((index = SlIterateArray()) != -1) {
|
||||
LeagueTableElement *lte = new (index) LeagueTableElement();
|
||||
LeagueTableElement *lte = new (LeagueTableElementID(index)) LeagueTableElement();
|
||||
SlObject(lte, slt);
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,7 @@ struct LEATChunkHandler : ChunkHandler {
|
||||
|
||||
int index;
|
||||
while ((index = SlIterateArray()) != -1) {
|
||||
LeagueTable *lt = new (index) LeagueTable();
|
||||
LeagueTable *lt = new (LeagueTableID(index)) LeagueTable();
|
||||
SlObject(lt, slt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user