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:
@ -102,7 +102,7 @@ void CGMine::initObj(vstd::RNG & rand)
|
||||
{
|
||||
//set guardians
|
||||
int howManyTroglodytes = rand.nextInt(100, 199);
|
||||
auto troglodytes = std::make_unique<CStackInstance>(CreatureID::TROGLODYTES, howManyTroglodytes);
|
||||
auto troglodytes = std::make_unique<CStackInstance>(cb, CreatureID::TROGLODYTES, howManyTroglodytes);
|
||||
putStack(SlotID(0), std::move(troglodytes));
|
||||
|
||||
assert(!abandonedMineResources.empty());
|
||||
|
Reference in New Issue
Block a user