break; // stop the for-loop
}
}
// return the array of resources to the Res pool they belong to
crntResPool.takeBack(returningRes);
// remove the returned resources from the vector of usedResources
for (int m = 0; m < n; m++) // go through the array of
// returningResources
{