mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-12 14:46:24 +00:00
CPoiToWorld: Make use of ranged for
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user