mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Removed pointer to army from StackInstance
This commit is contained in:
@ -1553,7 +1553,7 @@ void SwapStacks::applyGs(CGameState *gs)
|
||||
void InsertNewStack::applyGs(CGameState *gs)
|
||||
{
|
||||
if(auto * obj = gs->getArmyInstance(army))
|
||||
obj->putStack(slot, std::make_unique<CStackInstance>(type, count));
|
||||
obj->putStack(slot, std::make_unique<CStackInstance>(gs->callback, type, count));
|
||||
else
|
||||
throw std::runtime_error("InsertNewStack: invalid army object " + std::to_string(army.getNum()) + ", possible game state corruption.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user