2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 20:05:23 +00:00

Runtime: Resolve -Wrange-loop-analysis warnings

This commit is contained in:
2020-09-18 16:47:59 -04:00
parent e531affd21
commit 834fe39074
6 changed files with 19 additions and 19 deletions

View File

@@ -175,7 +175,7 @@ bool CFireFlea::CheckNearWater(const CStateManager& mgr, const zeus::CVector3f&
rstl::reserved_vector<TUniqueId, 1024> nearList;
mgr.BuildNearList(nearList, GetTranslation(), dir, 2.f, CMaterialFilter::skPassEverything, nullptr);
for (const TUniqueId id : nearList) {
for (const auto& id : nearList) {
if (TCastToConstPtr<CScriptWater>(mgr.GetObjectById(id)))
return true;
}