AlexVinS 10 năm trước cách đây
mục cha
commit
8cad23956c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/widgets/CGarrisonInt.cpp

+ 1 - 1
client/widgets/CGarrisonInt.cpp

@@ -302,7 +302,7 @@ void CGarrisonSlot::clickLeft(tribool down, bool previousState)
 		{
 		{
 			const CArmedInstance * selectedObj = owner->armedObjs[selection->upg];
 			const CArmedInstance * selectedObj = owner->armedObjs[selection->upg];
 			if (!creature && selectedObj->stacksCount() == 1)
 			if (!creature && selectedObj->stacksCount() == 1)
-				LOCPLINT->cb->splitStack(selectedObj, owner->armedObjs[upg], selection->ID, ID, myStack->count - 1);
+				LOCPLINT->cb->splitStack(selectedObj, owner->armedObjs[upg], selection->ID, ID, selection->myStack->count - 1);
 			else
 			else
 				LOCPLINT->cb->swapCreatures(owner->armedObjs[upg], owner->armedObjs[selection->upg], ID, selection->ID);
 				LOCPLINT->cb->swapCreatures(owner->armedObjs[upg], owner->armedObjs[selection->upg], ID, selection->ID);
 		}
 		}