From 965d34c712d6372c5112e8d9943e48de622a9d5a Mon Sep 17 00:00:00 2001 From: theo3 Date: Thu, 27 Aug 2020 13:20:39 -0700 Subject: non request BaseProcHandle stuff refactoring baseProcHandle.cpp refactoring --- src/KingSystem/ActorSystem/actBaseProcUnit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/KingSystem/ActorSystem/actBaseProcUnit.cpp') diff --git a/src/KingSystem/ActorSystem/actBaseProcUnit.cpp b/src/KingSystem/ActorSystem/actBaseProcUnit.cpp index 8f8b3919..09bd6c81 100644 --- a/src/KingSystem/ActorSystem/actBaseProcUnit.cpp +++ b/src/KingSystem/ActorSystem/actBaseProcUnit.cpp @@ -4,6 +4,7 @@ #include "KingSystem/ActorSystem/actActorLinkConstDataAccess.h" #include "KingSystem/ActorSystem/actBaseProc.h" #include "KingSystem/Utils/Debug.h" + namespace ksys::act { // NON_MATCHING: Equivalent but branches are off. @@ -15,7 +16,7 @@ bool BaseProcUnit::setProc(BaseProc* proc) { if (mProc) mProc = nullptr; - if (mHandle == &BaseProcHandle::sDummyBaseProcHandle) + if (mHandle == &BaseProcHandle::sDummyHandle) return false; if (mHandle) { @@ -51,7 +52,7 @@ bool BaseProcUnit::setProc(BaseProc* proc) { } bool BaseProcUnit::isParentHandleDefault() const { - return mHandle == &BaseProcHandle::sDummyBaseProcHandle; + return mHandle == &BaseProcHandle::sDummyHandle; } } // namespace ksys::act \ No newline at end of file -- cgit v1.2.3