Fix code mistake

This commit is contained in:
Dydzio
2019-01-01 14:19:52 +01:00
parent 94df657d03
commit 456132c06b
+1 -1
View File
@@ -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);