diff options
Diffstat (limited to 'src/Game/AI/Query/queryGeneralChoice2.cpp')
| -rw-r--r-- | src/Game/AI/Query/queryGeneralChoice2.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Game/AI/Query/queryGeneralChoice2.cpp b/src/Game/AI/Query/queryGeneralChoice2.cpp index 7ff555df..9bb73aaf 100644 --- a/src/Game/AI/Query/queryGeneralChoice2.cpp +++ b/src/Game/AI/Query/queryGeneralChoice2.cpp @@ -1,5 +1,6 @@ #include "Game/AI/Query/queryGeneralChoice2.h" #include <evfl/Query.h> +#include "KingSystem/ActorSystem/actActorUtil.h" namespace uking::query { @@ -7,9 +8,12 @@ GeneralChoice2::GeneralChoice2(const InitArg& arg) : ksys::act::ai::Query(arg) { GeneralChoice2::~GeneralChoice2() = default; -// FIXME: implement int GeneralChoice2::doQuery() { - return -1; + s32 idx = ksys::act::getSelectedChoiceIdx(2, getName()); + if (idx < 0) + return 0; + + return idx; } void GeneralChoice2::loadParams(const evfl::QueryArg& arg) {} |
