Fix mac compile
This commit is contained in:
parent
e47e1ede47
commit
23d7c83267
|
@ -115,11 +115,10 @@ ActorGfx* DynOS_Actor_GetActorGfx(const GraphNode* aGraphNode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check graph node
|
// Check graph node
|
||||||
auto it = std::find_if(_ValidActors.begin(), _ValidActors.end(),
|
for (const auto& _Actor : _ValidActors) {
|
||||||
[&aGraphNode](const auto& _Actor) { return _Actor.second.mGraphNode == aGraphNode; }
|
if (_Actor.second.mGraphNode == aGraphNode) {
|
||||||
);
|
return (ActorGfx*)&_Actor.second;
|
||||||
if (it != _ValidActors.end()) {
|
}
|
||||||
return &it->second;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// No actor found
|
// No actor found
|
||||||
|
|
Loading…
Reference in New Issue