summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-03-12 21:11:49 +0100
committerLéo Lam <leo@leolam.fr>2021-03-13 15:16:31 +0100
commit10a7871227c71372c873d677675c4172fdf7f7d9 (patch)
tree206351ff042e491ba1e75940795051ba779930a6 /src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp
parentafb4e218fa99a055a2231c347f53ca3badd42e37 (diff)
ksys/act: Finish BaseProcInitializer
Diffstat (limited to 'src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp b/src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp
index 5b98aac6..3609d5a2 100644
--- a/src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp
+++ b/src/KingSystem/ActorSystem/actBaseProcCreateTaskSelector.cpp
@@ -17,7 +17,7 @@ util::Task* BaseProcCreateTaskSelector::selectTask(const util::TaskSelectionCont
if (!task)
return &it;
- if (task->getLaneId() == 2)
+ if (task->getLaneId() == u8(BaseProcCreateTask::LaneId::_2))
return &it;
if (task->mMapObject && task->mMapObject->getFlags0().isOff(map::Object::Flag0::_4))
@@ -29,7 +29,7 @@ util::Task* BaseProcCreateTaskSelector::selectTask(const util::TaskSelectionCont
if (task->mDistanceToLoadSphere >= 0.0 && min > task->mDistanceToLoadSphere)
min = task->mDistanceToLoadSphere;
- if (task->getLaneId() == 1)
+ if (task->getLaneId() == u8(BaseProcCreateTask::LaneId::_1))
lane1_task = &it;
}