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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user