Browse Source

Fix unnecessarily requiring `ActorService`

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

10
sources/Unreal/NativeActorRef.uc

@ -80,13 +80,11 @@ 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