[Bug Fix] Fix for players having empty bazaar window dropdown list, even though trader is tagged as a trader. (#4391)

* Potential fix for players having empty bazaar window dropdown list, even though trader is tagged as a trader.

* Update the truncate of the trader table to avoid inappropriate deletions if an instance of bazaar was started.
This commit is contained in:
Mitch Freeman
2024-06-14 13:53:34 -03:00
committed by GitHub
parent 850053a136
commit b6b8491060
3 changed files with 16 additions and 12 deletions
-7
View File
@@ -1194,13 +1194,6 @@ bool Zone::Init(bool is_static) {
LoadZoneObjects();
LoadZoneDoors();
LoadZoneBlockedSpells();
//clear trader items if we are loading the bazaar
if (strncasecmp(short_name, "bazaar", 6) == 0) {
TraderRepository::Truncate(database);
database.DeleteBuyLines(0);
}
LoadVeteranRewards();
LoadAlternateCurrencies();
LoadNPCEmotes(&npc_emote_list);