1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 03:27:55 +00:00

fixed errors about underlying_map uninitialized

This commit is contained in:
Zeno Rogue
2024-05-16 21:15:48 +02:00
parent 1a70e54e24
commit 4ec627b1a1
3 changed files with 3 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ EX namespace fake {
}
hrmap_fake() {
underlying_map = nullptr;
in_underlying([this] { initcells(); underlying_map = currentmap; });
for(hrmap*& m: allmaps) if(m == underlying_map) m = NULL;
}