mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
fixes crash when entering a shipyard
This commit is contained in:
@@ -394,7 +394,7 @@ bool CGameInfoCallback::isVisibleFor(int3 pos, PlayerColor player) const
|
|||||||
bool CGameInfoCallback::isVisible(int3 pos) const
|
bool CGameInfoCallback::isVisible(int3 pos) const
|
||||||
{
|
{
|
||||||
if (!getPlayerID().has_value())
|
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());
|
return gameState().isVisibleFor(pos, *getPlayerID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user