mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix code mistake
This commit is contained in:
parent
94df657d03
commit
456132c06b
@ -449,7 +449,7 @@ void VCAI::objectRemoved(const CGObjectInstance * obj)
|
||||
//clear resource manager goal cache - logic copied from ResourceManager::notifyGoalCompleted
|
||||
while(true)
|
||||
{ //unfortunately we can't use remove_if on heap
|
||||
auto queue = ah->resourceManager->queue;
|
||||
auto & queue = ah->resourceManager->queue;
|
||||
auto iteratorToRemove = boost::find_if(queue, [&](const ResourceObjective & x) -> bool
|
||||
{
|
||||
return checkRemovalValidity(x.goal);
|
||||
|
Loading…
Reference in New Issue
Block a user