mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-04 04:05:54 +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];
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user