1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00

Fix order of map indexes

This commit is contained in:
Ivan Savenko 2023-01-19 20:19:29 +02:00
parent 8cfde8fc5e
commit d0c292e2fd

View File

@ -582,7 +582,7 @@ ESpellCastResult ViewMechanics::applyAdventureEffects(SpellCastEnvironment * env
{
ObjectPosInfo posInfo(obj);
if((*fowMap)[posInfo.pos.x][posInfo.pos.y][posInfo.pos.z] == 0)
if((*fowMap)[posInfo.pos.z][posInfo.pos.x][posInfo.pos.y] == 0)
pack.objectPositions.push_back(posInfo);
}
}