1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 23:35:59 +00:00

intra:: correct cleanup of intra maps

This commit is contained in:
Zeno Rogue
2022-02-27 01:13:50 +01:00
parent 0aa338e9eb
commit 443ecf0331
2 changed files with 21 additions and 0 deletions

View File

@@ -1293,6 +1293,12 @@ EX vector<cell*> build_shortest_path(cell *c1, cell *c2) {
}
EX void clearCellMemory() {
#if MAXMDIM >= 4
if(intra::in) {
intra::erase_all_maps();
return;
}
#endif
for(int i=0; i<isize(allmaps); i++)
if(allmaps[i])
delete allmaps[i];