Merge branch 'christof/trading_fix2' into 'master'

fix merchant getting stuck in non-existant trade when declining after accepting

See merge request veloren/veloren!1941
This commit is contained in:
Marcel 2021-03-19 09:29:45 +00:00
commit eabddd7263

View File

@ -970,6 +970,7 @@ impl<'a> AgentData<'a> {
}
if pending.phase != TradePhase::Mutate {
// we got into the review phase but without balanced goods, decline
agent.trading = false;
event_emitter.emit(ServerEvent::ProcessTradeAction(
*self.entity,
tradeid,