Przeglądaj źródła

Uh... fix for previous fix :/

Michał W. Urbańczyk 16 lat temu
rodzic
commit
d2e1c8d782
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      CAdvmapInterface.cpp

+ 6 - 0
CAdvmapInterface.cpp

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