mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Stacks of armed instance are now unique_ptr
This commit is contained in:
@@ -1180,7 +1180,7 @@ void AIGateway::recruitCreatures(const CGDwelling * d, const CArmedInstance * re
|
||||
|
||||
if(!recruiter->getSlotFor(creID).validSlot())
|
||||
{
|
||||
for(auto stack : recruiter->Slots())
|
||||
for(const auto & stack : recruiter->Slots())
|
||||
{
|
||||
if(!stack.second->getType())
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user