mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Removed ConstTransitivePtr from StackLocation
This commit is contained in:
@@ -432,9 +432,9 @@ void PlayerMessageProcessor::cheatGiveArmy(PlayerColor player, const CGHeroInsta
|
||||
if (!hero->hasStackAtSlot(SlotID(i)))
|
||||
{
|
||||
if (amountPerSlot.has_value())
|
||||
gameHandler->insertNewStack(StackLocation(hero, SlotID(i)), creature, *amountPerSlot);
|
||||
gameHandler->insertNewStack(StackLocation(hero->id, SlotID(i)), creature, *amountPerSlot);
|
||||
else
|
||||
gameHandler->insertNewStack(StackLocation(hero, SlotID(i)), creature, 5 * std::pow(10, i));
|
||||
gameHandler->insertNewStack(StackLocation(hero->id, SlotID(i)), creature, 5 * std::pow(10, i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user