From 5df53f6ea27a653caf00f973fb860ede295041e3 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 27 Nov 2023 23:20:24 +0200 Subject: [PATCH] Hota compatibility fix - allow stack selection border to have different size than creature icon --- client/widgets/CGarrisonInt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/widgets/CGarrisonInt.cpp b/client/widgets/CGarrisonInt.cpp index 8c7a78697..bf444ede9 100644 --- a/client/widgets/CGarrisonInt.cpp +++ b/client/widgets/CGarrisonInt.cpp @@ -432,6 +432,7 @@ CGarrisonSlot::CGarrisonSlot(CGarrisonInt * Owner, int x, int y, SlotID IID, EGa selectionImage = std::make_shared(graphics->getAnimation(imgName), 1); selectionImage->disable(); + selectionImage->center(creatureImage->pos.center()); if(Owner->smallIcons) {