1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Fix crash on switching players in hotseat

This commit is contained in:
Ivan Savenko 2023-03-21 19:06:38 +02:00
parent bfe7bb11ab
commit bb03abdce6
2 changed files with 1 additions and 2 deletions

View File

@ -1559,7 +1559,6 @@ void CPlayerInterface::update()
}
assert(adventureInt);
assert(adventureInt->selection);
// Handles mouse and key input
GH.updateTime();

View File

@ -986,7 +986,6 @@ void CAdvMapInt::initializeNewTurn()
{
heroList->update();
townList->update();
mapAudio->onPlayerTurnStarted();
const CGHeroInstance * heroToSelect = nullptr;
@ -1017,6 +1016,7 @@ void CAdvMapInt::initializeNewTurn()
updateNextHero(nullptr);
showAll(screen);
mapAudio->onPlayerTurnStarted();
if(settings["session"]["autoSkip"].Bool() && !GH.isKeyboardShiftDown())
{