mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Add Truncate repository method and purge player sold items on world bootup
This commit is contained in:
@@ -93,6 +93,7 @@ union semun {
|
||||
#include "../zone/data_bucket.h"
|
||||
#include "world_server_command_handler.h"
|
||||
#include "../common/content/world_content_service.h"
|
||||
#include "../common/repositories/merchantlist_temp_repository.h"
|
||||
|
||||
ClientList client_list;
|
||||
GroupLFPList LFPGroupList;
|
||||
@@ -342,6 +343,9 @@ int main(int argc, char** argv) {
|
||||
database.ClearInvSnapshots();
|
||||
LogInfo("Loading items");
|
||||
|
||||
LogInfo("Purging player sold merchant items");
|
||||
MerchantlistTempRepository::Truncate();
|
||||
|
||||
if (!content_db.LoadItems(hotfix_name)) {
|
||||
LogError("Error: Could not load item data. But ignoring");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user