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:
parent
09cb6f56dd
commit
ef1a51d0e4
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue