mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
CPlayerInterface: always choose hero if there no town. Fix issue 2073
This commit is contained in:
@@ -2294,8 +2294,10 @@ void CPlayerInterface::acceptTurn()
|
|||||||
{
|
{
|
||||||
adventureInt->select(heroToSelect, centerView);
|
adventureInt->select(heroToSelect, centerView);
|
||||||
}
|
}
|
||||||
else
|
else if(towns.size())
|
||||||
adventureInt->select(towns.front(), centerView);
|
adventureInt->select(towns.front(), centerView);
|
||||||
|
else
|
||||||
|
adventureInt->select(wanderingHeroes.front());
|
||||||
|
|
||||||
//show new day animation and sound on infobar
|
//show new day animation and sound on infobar
|
||||||
adventureInt->infoBar.showDate();
|
adventureInt->infoBar.showDate();
|
||||||
|
Reference in New Issue
Block a user