aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-10 22:22:04 +0200
committerEugene Sandulenko2019-09-03 17:17:16 +0200
commit6c0684cbbaa028cbeaf58cef68d2fcecdd900041 (patch)
tree72d86420f2a9a670bb0ba61d2274ce2bfbc5f681
parent538ab04493f91b120b7be300af2925d044683b80 (diff)
downloadscummvm-rg350-6c0684cbbaa028cbeaf58cef68d2fcecdd900041.tar.gz
scummvm-rg350-6c0684cbbaa028cbeaf58cef68d2fcecdd900041.tar.bz2
scummvm-rg350-6c0684cbbaa028cbeaf58cef68d2fcecdd900041.zip
HDB: Added missing calls to Map::Map::loadSaveFile()
-rw-r--r--engines/hdb/map.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp
index b28533096c..fb84bc0979 100644
--- a/engines/hdb/map.cpp
+++ b/engines/hdb/map.cpp
@@ -186,6 +186,10 @@ void Map::loadSaveFile(Common::InSaveFile *in) {
_mapLaserBeams = new byte[_width * _height];
for (i = 0; i < _width * _height; i++)
_mapLaserBeams[i] = in->readByte();
+
+ // load all the map's tiles (cache)
+ loadTiles();
+ _mapLoaded = true;
}
int Map::loadTiles() {