diff options
Diffstat (limited to 'engines/gob/map_v1.cpp')
-rw-r--r-- | engines/gob/map_v1.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/gob/map_v1.cpp b/engines/gob/map_v1.cpp index c5a2622e44..7134527592 100644 --- a/engines/gob/map_v1.cpp +++ b/engines/gob/map_v1.cpp @@ -42,6 +42,9 @@ Map_v1::~Map_v1() { } void Map_v1::init(void) { + if (_passMap || _itemsMap) + return; + _mapWidth = 26; _mapHeight = 28; @@ -84,6 +87,8 @@ void Map_v1::loadMapObjects(const char *avjFile) { } Common::MemoryReadStream mapData(dataBuf, 4294967295U); + init(); + if (_loadFromAvo) { mapData.read(_passMap, _mapHeight * _mapWidth); |