From c93ab9a57c40bf0fc780d31e23ac14eccdb5be23 Mon Sep 17 00:00:00 2001 From: QingYu <62042544+dreamguxiang@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:23:36 +0800 Subject: [PATCH] fix: fix ModalForm bug --- src-server/ll/core/form/FormHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-server/ll/core/form/FormHandler.cpp b/src-server/ll/core/form/FormHandler.cpp index 4466ee3455..635d5161fc 100644 --- a/src-server/ll/core/form/FormHandler.cpp +++ b/src-server/ll/core/form/FormHandler.cpp @@ -122,7 +122,7 @@ void ModalFormHandler::handle( } return; } - bool selected = data.has_value(); + bool selected = data->asBool("false"); if (mCallback) { mCallback(player, (ll::form::ModalFormSelectedButton)selected, cancelReason); }