[Bug Fix] Fix Possible Item Loss in Trades (#4554)

This commit is contained in:
Alex King 2024-11-24 18:29:27 -05:00 committed by GitHub
parent 630da0eee6
commit 9938755517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -777,6 +777,8 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st
tradingWith->SayString(TRADE_BACK, GetCleanName());
PushItemOnCursor(*inst, true);
}
items.clear();
}
// Only enforce trade rules if the NPC doesn't have an EVENT_TRADE
// subroutine. That overrides all.