1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Merge pull request #6130 from Opuszek/fix_crash_on_entering_a_shipyard

fixes crash when entering a shipyard
This commit is contained in:
Ivan Savenko
2025-09-14 20:34:07 +03:00
committed by GitHub

View File

@@ -394,7 +394,7 @@ bool CGameInfoCallback::isVisibleFor(int3 pos, PlayerColor player) const
bool CGameInfoCallback::isVisible(int3 pos) const
{
if (!getPlayerID().has_value())
return true; // weird, but we do have such calls
return gameState().getMap().isInTheMap(pos); // weird, but we do have such calls
return gameState().isVisibleFor(pos, *getPlayerID());
}