From 7d6938bc27bbc52a495096643d7257db9988f45f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 21 Jun 2021 18:33:10 +0200 Subject: ksys/act: FIx Query loadBool, loadInt, loadFloat --- src/KingSystem/ActorSystem/actAiQuery.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/KingSystem/ActorSystem/actAiQuery.cpp') diff --git a/src/KingSystem/ActorSystem/actAiQuery.cpp b/src/KingSystem/ActorSystem/actAiQuery.cpp index 87b7af6b..97f9ac33 100644 --- a/src/KingSystem/ActorSystem/actAiQuery.cpp +++ b/src/KingSystem/ActorSystem/actAiQuery.cpp @@ -84,7 +84,7 @@ bool Query::loadInt(const evfl::ParamAccessor& accessor, const sead::SafeString& if (!accessor.FindInt(&value, param.cstr())) return false; - return mParamPack.setVariable(param, AIDefParamType::Int, value); + return mParamPack.setAITreeVariable(param, AIDefParamType::Int, value); } bool Query::loadFloat(const evfl::ParamAccessor& accessor, const sead::SafeString& param) { @@ -92,7 +92,7 @@ bool Query::loadFloat(const evfl::ParamAccessor& accessor, const sead::SafeStrin if (!accessor.FindFloat(&value, param.cstr())) return false; - return mParamPack.setVariable(param, AIDefParamType::Float, value); + return mParamPack.setAITreeVariable(param, AIDefParamType::Float, value); } bool Query::loadBool(const evfl::ParamAccessor& accessor, const sead::SafeString& param) { @@ -100,7 +100,7 @@ bool Query::loadBool(const evfl::ParamAccessor& accessor, const sead::SafeString if (!accessor.FindBool(&value, param.cstr())) return false; - return mParamPack.setVariable(param, AIDefParamType::Bool, value); + return mParamPack.setAITreeVariable(param, AIDefParamType::Bool, value); } bool Query::getAITreeVariable(sead::SafeString** value, const sead::SafeString& param) const { -- cgit v1.2.3