소스 검색

fix crash on hotseat new game

Andrej Dudenhefner 1 주 전
부모
커밋
737352b31b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      client/CPlayerInterface.cpp

+ 2 - 2
client/CPlayerInterface.cpp

@@ -1825,7 +1825,7 @@ bool CPlayerInterface::checkQuickLoadingGame(bool verbose)
 		else
 			logGlobal->trace("No quicksave file found at %s", QUICKSAVE_PATH);
 		hasQuickSave = false;
-		if(adventureInt)
+		if(cb && adventureInt)
 			adventureInt->updateActiveState();
 		return false;
 	}
@@ -1837,7 +1837,7 @@ bool CPlayerInterface::checkQuickLoadingGame(bool verbose)
 		else
 			logGlobal->trace("Cannot quick load game at %s: %s", QUICKSAVE_PATH, *error);
 		hasQuickSave = false;
-		if(adventureInt)
+		if(cb && adventureInt)
 			adventureInt->updateActiveState();
 		return false;
 	}