From b28ba7b3adcda445a63d617c8cb0691d404130d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 8 Nov 2020 23:03:22 +0100 Subject: ksys/act: Add Actor::getMaxLife and fix encapsulation --- src/KingSystem/ActorSystem/actActorCaptureMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/KingSystem/ActorSystem/actActorCaptureMgr.cpp') diff --git a/src/KingSystem/ActorSystem/actActorCaptureMgr.cpp b/src/KingSystem/ActorSystem/actActorCaptureMgr.cpp index e1a530b5..32f1525b 100644 --- a/src/KingSystem/ActorSystem/actActorCaptureMgr.cpp +++ b/src/KingSystem/ActorSystem/actActorCaptureMgr.cpp @@ -36,7 +36,7 @@ void ActorCaptureMgr::setCamera(Camera* camera) { } void ActorCaptureMgr::loadCaptureParam() { - if (!mActor || !mActor->mActorParam) + if (!mActor || !mActor->getParam()) return; const char* name = getCapturedActorName(); -- cgit v1.2.3