From ffc40f9743d69491313ea594438428f7a5621eb1 Mon Sep 17 00:00:00 2001 From: Dofes <91889957+Dofes@users.noreply.github.com> Date: Wed, 8 Jan 2025 20:28:17 +0800 Subject: [PATCH] fix: fix #1610 --- src-server/ll/core/form/FormHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-server/ll/core/form/FormHandler.cpp b/src-server/ll/core/form/FormHandler.cpp index 5f8c4961e8..04d33fece2 100644 --- a/src-server/ll/core/form/FormHandler.cpp +++ b/src-server/ll/core/form/FormHandler.cpp @@ -140,8 +140,9 @@ bool handleFormPacket( if (it == formHandlers.end()) { return false; } - it->second->handle(player, std::move(data), cancelReason); + auto handler = std::move(it->second); formHandlers.erase(it); + handler->handle(player, std::move(data), cancelReason); return true; }