mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Removed pointer to army from StackInstance
This commit is contained in:
@@ -533,7 +533,7 @@ void CGTownInstance::initializeNeutralTownGarrison(vstd::RNG & rand)
|
||||
CreatureID guardID = getTown()->creatures[guard.tier].at(0);
|
||||
int guardSize = rand.nextInt(guard.min, guard.max);
|
||||
|
||||
putStack(getFreeSlot(), std::make_unique<CStackInstance>(guardID, guardSize));
|
||||
putStack(getFreeSlot(), std::make_unique<CStackInstance>(cb, guardID, guardSize));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user