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