Jelajahi Sumber

Fix possible crash on swithing to another player in hotseat while having
different visible heroes on minimap

Ivan Savenko 3 bulan lalu
induk
melakukan
27f7890784
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      client/adventureMap/AdventureMapInterface.cpp

+ 1 - 0
client/adventureMap/AdventureMapInterface.cpp

@@ -362,6 +362,7 @@ void AdventureMapInterface::onHotseatWaitStarted(PlayerColor playerID)
 {
 	backgroundDimLevel = 255;
 
+	widget->getMinimap()->setAIRadar(true);
 	onCurrentPlayerChanged(playerID);
 	setState(EAdventureState::HOTSEAT_WAIT);
 }