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