summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actBaseProc.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-08-19 18:15:36 +0200
committerLéo Lam <leo@leolam.fr>2020-08-19 18:16:03 +0200
commit5de91ef5fdcd79ec278da4a5dc87121b88bd821b (patch)
treeb3190740d86d482aa3b386fdb7978a9e5b471dd5 /src/KingSystem/ActorSystem/actBaseProc.cpp
parent08687964b40969ee82c3e7171a25ba11a17c5c09 (diff)
ksys/act: Fix BaseProc::isSpecialJobType_ return type
BaseProc::isSpecialJobType_ returns 0, 1 or 2 This fixes the matching issue!
Diffstat (limited to 'src/KingSystem/ActorSystem/actBaseProc.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actBaseProc.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/KingSystem/ActorSystem/actBaseProc.cpp b/src/KingSystem/ActorSystem/actBaseProc.cpp
index 01ccc5d4..ed50eef2 100644
--- a/src/KingSystem/ActorSystem/actBaseProc.cpp
+++ b/src/KingSystem/ActorSystem/actBaseProc.cpp
@@ -156,9 +156,11 @@ void BaseProc::preDelete2_(bool*) {}
void BaseProc::preDelete1_() {}
-// NON_MATCHING: branching
-bool BaseProc::isSpecialJobType_(JobType type) {
- return BaseProcMgr::instance()->isSpecialJobType(type) || isSpecialJobTypeForThisActor_(type);
+BaseProc::IsSpecialJobTypeResult BaseProc::isSpecialJobType_(JobType type) {
+ if (BaseProcMgr::instance()->isSpecialJobType(type) || isSpecialJobTypeForThisActor_(type))
+ return IsSpecialJobTypeResult::Yes;
+
+ return IsSpecialJobTypeResult::No;
}
bool BaseProc::canWakeUp_() {