Pārlūkot izejas kodu

Garrison: Show "(in garisson)" for garissoned heroes' creatures

Sandy Carter 10 gadi atpakaļ
vecāks
revīzija
b2da2b8ef0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      client/widgets/CGarrisonInt.cpp

+ 1 - 1
client/widgets/CGarrisonInt.cpp

@@ -75,7 +75,7 @@ void CGarrisonSlot::hover (bool on)
 				{
 					temp = CGI->generaltexth->tcommands[32]; //Select %s (visiting)
 				}
-				else if(owner->armedObjs[0] && owner->armedObjs[0]->ID == Obj::TOWN)
+				else if(owner->armedObjs[0] && (owner->armedObjs[0]->ID == Obj::TOWN || owner->armedObjs[0]->ID == Obj::HERO))
 				{
 					temp = CGI->generaltexth->tcommands[12]; //Select %s (in garrison)
 				}