| 216 | } |
| 217 | |
| 218 | CMapLocation* CMapManager::GetMapLocation(const shared_str& spot_type, u16 id) |
| 219 | { |
| 220 | FindLocationBySpotID key(spot_type, id); |
| 221 | Locations_it it = std::find_if(Locations().begin(), Locations().end(), key); |
| 222 | if (it != Locations().end()) |
| 223 | return (*it).location; |
| 224 | |
| 225 | return 0; |
| 226 | } |
| 227 | |
| 228 | void CMapManager::Update() |
| 229 | { |
no test coverage detected