[Bug Fix] Fix trader mode (#4397)

* Fix bazaar trading

* Update `constexpr`

* Added world trader table truncate on boot to ensure that the trader table is always empty when world starts.

---------

Co-authored-by: Mitch Freeman <65987027+neckkola@users.noreply.github.com>
This commit is contained in:
JJ
2024-06-16 20:55:14 -04:00
committed by GitHub
parent 7b914c731b
commit ac24c9bf5a
4 changed files with 19 additions and 10 deletions
+2
View File
@@ -289,6 +289,8 @@ bool WorldBoot::DatabaseLoadRoutines(int argc, char **argv)
LogInfo("Clearing inventory snapshots");
database.ClearInvSnapshots();
LogInfo("Loading items");
LogInfo("Clearing trader table details");
database.ClearTraderDetails();
if (!content_db.LoadItems(hotfix_name)) {
LogError("Error: Could not load item data. But ignoring");