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

This commit is contained in:
Christof Petig 2021-03-19 00:43:23 +01:00
parent 87883d9b11
commit fb40cd93a9

View File

@ -968,6 +968,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,