소스 검색

fixes crash when entering a shipyard

Opuszek 1 개월 전
부모
커밋
c5751cc82b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/callback/CGameInfoCallback.cpp

+ 1 - 1
lib/callback/CGameInfoCallback.cpp

@@ -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());
 }