1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 14:09:06 +00:00

Fix "tile dummy" error.

When a mod without a world map was loaded from a saved game,
and the player died and respawned at the last save, the game
would spam this error message.
Now it loads world map explored data only if a world map is present.
This commit is contained in:
fgenesis 2012-03-11 18:48:18 +01:00
parent 9b63b400d5
commit 4891fcc339

View file

@ -2709,7 +2709,7 @@ void Continuity::loadFile(int slot)
#ifdef AQUARIA_BUILD_MAPVIS #ifdef AQUARIA_BUILD_MAPVIS
if (worldMap->Attribute("va")) if (worldMap->Attribute("va") && dsq->continuity.worldMap.getNumWorldMapTiles())
{ {
std::istringstream is(worldMap->Attribute("va")); std::istringstream is(worldMap->Attribute("va"));