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
This commit is contained in:
inky 2019-01-06 04:58:12 +01:00
parent 09cb6f56dd
commit ef1a51d0e4

View file

@ -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")