aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-13 15:41:01 +0200
committerEugene Sandulenko2019-09-03 17:17:19 +0200
commit5fa5f6fb391449369e54836bf2c0f8e201a63691 (patch)
tree742192e668bab7fe04e19b1f642610f85dd401a9 /engines/hdb
parent614fc61254785f95cb4f477732ed9dcaf1717ecf (diff)
downloadscummvm-rg350-5fa5f6fb391449369e54836bf2c0f8e201a63691.tar.gz
scummvm-rg350-5fa5f6fb391449369e54836bf2c0f8e201a63691.tar.bz2
scummvm-rg350-5fa5f6fb391449369e54836bf2c0f8e201a63691.zip
HDB: Fix _mapLoaded flag handling
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/map.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp
index 9a68c808dc..5f76a0dacb 100644
--- a/engines/hdb/map.cpp
+++ b/engines/hdb/map.cpp
@@ -34,7 +34,6 @@ Map::Map() {
_mapExplosions = NULL;
_mapExpBarrels = NULL;
_mapLaserBeams = NULL;
-
}
Map::~Map() {
@@ -227,6 +226,8 @@ void Map::restartSystem() {
_mapExplosions = NULL;
_mapExpBarrels = NULL;
_mapLaserBeams = NULL;
+
+ _mapLoaded = false;
}
bool Map::loadMap(char *name) {
@@ -242,10 +243,6 @@ bool Map::loadMap(char *name) {
}
bool Map::load(Common::SeekableReadStream *stream) {
- if (_mapLoaded) {
- return false;
- }
-
debug(5, "map stream size: %d(%x)", stream->size(), stream->size());
// Load MSM data header