CPoiToWorld: Make use of ranged for

This commit is contained in:
Lioncash 2020-06-19 03:27:46 -04:00
parent a6caff1387
commit 5661d0263e

View File

@ -29,9 +29,9 @@ void CPoiToWorld::AddPoiMeshMap(uint32 PoiID, uint32 ModelID)
SPoiMap *pMap = mPoiLookupMap[PoiID]; SPoiMap *pMap = mPoiLookupMap[PoiID];
// Check whether this model ID is already mapped to this POI // Check whether this model ID is already mapped to this POI
for (auto it = pMap->ModelIDs.begin(); it != pMap->ModelIDs.end(); it++) for (const auto id : pMap->ModelIDs)
{ {
if (*it == ModelID) if (id == ModelID)
return; return;
} }