Fix mac compile

This commit is contained in:
MysterD 2022-05-28 21:09:27 -07:00
parent eeb47f9896
commit 8fd9d76f5a
1 changed files with 4 additions and 5 deletions

View File

@ -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