MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / RemoveGoal

Method RemoveGoal

Source/Campaign.hpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void RemoveGoal(ePhaseObjective pGoal) {
108
109 auto Goal = std::find(mGoals.begin(), mGoals.end(), pGoal);
110 if (Goal != mGoals.end())
111 mGoals.erase(Goal);
112 }
113
114 void ClearGoals() {
115 mGoals.clear();

Callers

nothing calls this directly

Calls 4

findFunction · 0.85
eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected