Pārlūkot izejas kodu

Uh... fix for previous fix :/

Michał W. Urbańczyk 16 gadi atpakaļ
vecāks
revīzija
d2e1c8d782
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      CAdvmapInterface.cpp

+ 6 - 0
CAdvmapInterface.cpp

@@ -1602,6 +1602,12 @@ void CAdvMapInt::select(const CArmedInstance *sel )
 		townList.selected = pos;
 		townList.selected = pos;
 		terrain.currentPath = NULL;
 		terrain.currentPath = NULL;
 	}
 	}
+	else
+	{
+		int pos = heroList.getPosOfHero(sel);
+		heroList.selected = pos;
+		terrain.currentPath = heroList.items[pos].second;
+	}
 	townList.draw(screen);
 	townList.draw(screen);
 	heroList.draw(screen);
 	heroList.draw(screen);
 	infoBar.draw(screen);
 	infoBar.draw(screen);