Browse Source

Hota compatibility fix - allow stack selection border to have different
size than creature icon

Ivan Savenko 2 years ago
parent
commit
5df53f6ea2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      client/widgets/CGarrisonInt.cpp

+ 1 - 0
client/widgets/CGarrisonInt.cpp

@@ -432,6 +432,7 @@ CGarrisonSlot::CGarrisonSlot(CGarrisonInt * Owner, int x, int y, SlotID IID, EGa
 
 	selectionImage = std::make_shared<CAnimImage>(graphics->getAnimation(imgName), 1);
 	selectionImage->disable();
+	selectionImage->center(creatureImage->pos.center());
 
 	if(Owner->smallIcons)
 	{