Final Goal?
Is this really GetFinalGoal? looks more like "GetGoalByUID"
Goal* Building::GetFinalGoal(int ID)
{
if (_goals.count(ID) == 1) {
return _goals[ID];
} else {
if (ID == -1)
return NULL;
else {
Log->Write(
"ERROR: I could not find any goal with the 'ID' [%d]. You have defined [%d] goals",
ID, _goals.size());
exit(EXIT_FAILURE);
}
}
}