From ef1a51d0e4e3541cf0461beecd015405ff3c82b5 Mon Sep 17 00:00:00 2001 From: inky Date: Sun, 6 Jan 2019 04:58:12 +0100 Subject: [PATCH] Fixed: Free animal in player trade. Player could free an animal already selected in trade. When abort, client was given a copy of the (ghost)item in bag. --HG-- branch : develop --- code/ryzom/client/src/interface_v3/action_handler_game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/action_handler_game.cpp b/code/ryzom/client/src/interface_v3/action_handler_game.cpp index 7120c3b9f..836a4df28 100644 --- a/code/ryzom/client/src/interface_v3/action_handler_game.cpp +++ b/code/ryzom/client/src/interface_v3/action_handler_game.cpp @@ -1532,7 +1532,8 @@ public: virtual void execute (CCtrlBase * /* pCaller */, const string &Params) { // free with no confirm - beastOrder ("free", Params, false); + if (!UserEntity->isBusy()) + beastOrder ("free", Params, false); } }; REGISTER_ACTION_HANDLER( CHandlerDoBeastFree, "do_beast_free")