mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-04 12:15:58 +00:00
CPoiToWorld: Make use of ranged for
This commit is contained in:
parent
a6caff1387
commit
5661d0263e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user