Browse Source

CPlayerInterface: always choose hero if there no town. Fix issue 2073

Arseniy Shestakov 9 years ago
parent
commit
076924166a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      client/CPlayerInterface.cpp

+ 3 - 1
client/CPlayerInterface.cpp

@@ -2294,8 +2294,10 @@ void CPlayerInterface::acceptTurn()
 	{
 		adventureInt->select(heroToSelect, centerView);
 	}
-	else
+	else if(towns.size())
 		adventureInt->select(towns.front(), centerView);
+	else
+		adventureInt->select(wanderingHeroes.front());
 
 	//show new day animation and sound on infobar
 	adventureInt->infoBar.showDate();