Browse Source

Fix unnecessarily requiring `ActorService`

pull/8/head
Anton Tarasenko 3 years ago
parent
commit
cab913eb8a
  1. 8
      sources/Unreal/NativeActorRef.uc

8
sources/Unreal/NativeActorRef.uc

@ -81,12 +81,10 @@ public final function NativeActorRef Set(Actor newValue)
public function bool IsEqual(Object other)
{
local NativeActorRef otherBox;
local ActorService service;
otherBox = NativeActorRef(other);
if (otherBox == none) return false;
service = ActorService(class'ActorService'.static.Require());
if (service == none) return false;
if (otherBox == none) {
return false;
}
return Get() == otherBox.Get();
}

Loading…
Cancel
Save