Removed ConstTransitivePtr from StackLocation

This commit is contained in:
Ivan Savenko
2025-03-08 14:04:51 +00:00
parent a061ed04de
commit 82506d5eff
12 changed files with 119 additions and 116 deletions
+2 -2
View File
@@ -385,7 +385,7 @@ void NewTurnProcessor::updateNeutralTownGarrison(const CGTownInstance * t, int c
if (creature->getLevel() != tierToGrow)
continue;
StackLocation stackLocation(t, slot.first);
StackLocation stackLocation(t->id, slot.first);
gameHandler->changeStackCount(stackLocation, creature->getGrowth(), false);
takeFromAvailable(creature->getGrowth());
@@ -410,7 +410,7 @@ void NewTurnProcessor::updateNeutralTownGarrison(const CGTownInstance * t, int c
if (baseCreature.toEntity(LIBRARY)->getLevel() != tierToGrow)
continue;
StackLocation stackLocation(t, freeSlotID);
StackLocation stackLocation(t->id, freeSlotID);
if (upgradeUnit && !baseCreature.toCreature()->upgrades.empty())
{