1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Stacks of armed instance are now unique_ptr

This commit is contained in:
Ivan Savenko
2025-03-17 21:11:06 +00:00
parent bdae7285ae
commit c02a8a84fd
33 changed files with 101 additions and 115 deletions

View File

@ -361,7 +361,7 @@ void CRewardableObject::initializeGuards()
if (!slotID.validSlot())
return;
putStack(slotID, new CStackInstance(guard.getId(), guard.getCount()));
putStack(slotID, std::make_unique<CStackInstance>(guard.getId(), guard.getCount()));
}
}
}