From 23d7c83267841d484e354262c90ff897ff3f01ea Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 28 May 2022 21:09:27 -0700 Subject: [PATCH] Fix mac compile --- data/dynos_mgr_actor.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/data/dynos_mgr_actor.cpp b/data/dynos_mgr_actor.cpp index c1ce9988..7216865b 100644 --- a/data/dynos_mgr_actor.cpp +++ b/data/dynos_mgr_actor.cpp @@ -115,11 +115,10 @@ ActorGfx* DynOS_Actor_GetActorGfx(const GraphNode* aGraphNode) { } // Check graph node - auto it = std::find_if(_ValidActors.begin(), _ValidActors.end(), - [&aGraphNode](const auto& _Actor) { return _Actor.second.mGraphNode == aGraphNode; } - ); - if (it != _ValidActors.end()) { - return &it->second; + for (const auto& _Actor : _ValidActors) { + if (_Actor.second.mGraphNode == aGraphNode) { + return (ActorGfx*)&_Actor.second; + } } // No actor found