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:
parent
bfe7bb11ab
commit
bb03abdce6
@ -1559,7 +1559,6 @@ void CPlayerInterface::update()
|
||||
}
|
||||
|
||||
assert(adventureInt);
|
||||
assert(adventureInt->selection);
|
||||
|
||||
// Handles mouse and key input
|
||||
GH.updateTime();
|
||||
|
@ -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())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user