mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix merchant getting stuck in non-existant trade when declining after accepting
This commit is contained in:
parent
87883d9b11
commit
fb40cd93a9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user