mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Fix crash on switching players in hotseat
This commit is contained in:
@@ -1559,7 +1559,6 @@ void CPlayerInterface::update()
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert(adventureInt);
|
assert(adventureInt);
|
||||||
assert(adventureInt->selection);
|
|
||||||
|
|
||||||
// Handles mouse and key input
|
// Handles mouse and key input
|
||||||
GH.updateTime();
|
GH.updateTime();
|
||||||
|
@@ -986,7 +986,6 @@ void CAdvMapInt::initializeNewTurn()
|
|||||||
{
|
{
|
||||||
heroList->update();
|
heroList->update();
|
||||||
townList->update();
|
townList->update();
|
||||||
mapAudio->onPlayerTurnStarted();
|
|
||||||
|
|
||||||
const CGHeroInstance * heroToSelect = nullptr;
|
const CGHeroInstance * heroToSelect = nullptr;
|
||||||
|
|
||||||
@@ -1017,6 +1016,7 @@ void CAdvMapInt::initializeNewTurn()
|
|||||||
|
|
||||||
updateNextHero(nullptr);
|
updateNextHero(nullptr);
|
||||||
showAll(screen);
|
showAll(screen);
|
||||||
|
mapAudio->onPlayerTurnStarted();
|
||||||
|
|
||||||
if(settings["session"]["autoSkip"].Bool() && !GH.isKeyboardShiftDown())
|
if(settings["session"]["autoSkip"].Bool() && !GH.isKeyboardShiftDown())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user