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) public function bool IsEqual(Object other)
{ {
local NativeActorRef otherBox; local NativeActorRef otherBox;
local ActorService service;
otherBox = NativeActorRef(other); otherBox = NativeActorRef(other);
if (otherBox == none) return false; if (otherBox == none) {
service = ActorService(class'ActorService'.static.Require()); return false;
if (service == none) return false; }
return Get() == otherBox.Get(); return Get() == otherBox.Get();
} }

Loading…
Cancel
Save