1
0
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:
Arseniy Shestakov
2016-09-01 07:04:43 +03:00
parent ce669c8a0a
commit 076924166a

View File

@@ -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();