diff options
author | Eugene Sandulenko | 2019-07-13 15:41:01 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:19 +0200 |
commit | 5fa5f6fb391449369e54836bf2c0f8e201a63691 (patch) | |
tree | 742192e668bab7fe04e19b1f642610f85dd401a9 /engines/hdb | |
parent | 614fc61254785f95cb4f477732ed9dcaf1717ecf (diff) | |
download | scummvm-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.cpp | 7 |
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 |