mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:07:43 +00:00
Runtime: Resolve -Wrange-loop-analysis warnings (part 2)
This commit is contained in:
@@ -137,7 +137,7 @@ void CHudRadarInterface::Draw(const CStateManager& mgr, float alpha) {
|
||||
drawParms.x0_playerPos = mgr.GetPlayer().GetTranslation();
|
||||
drawParms.x74_alpha = alpha;
|
||||
|
||||
for (const TUniqueId id : nearList) {
|
||||
for (const auto& id : nearList) {
|
||||
if (const TCastToConstPtr<CActor> act = mgr.GetObjectById(id)) {
|
||||
if (!act->GetActive()) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user