| 337 | |
| 338 | |
| 339 | cObjective * cScoreboard::GetObjective(const AString & a_Name) |
| 340 | { |
| 341 | cCSLock Lock(m_CSObjectives); |
| 342 | |
| 343 | cObjectiveMap::iterator it = m_Objectives.find(a_Name); |
| 344 | |
| 345 | if (it == m_Objectives.end()) |
| 346 | { |
| 347 | return NULL; |
| 348 | } |
| 349 | else |
| 350 | { |
| 351 | return &it->second; |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | |
| 356 |
no test coverage detected