From 0ebda1168aa08d2b4539de6304c3cbd806448152 Mon Sep 17 00:00:00 2001 From: Mykhailo Redko Date: Mon, 17 Jun 2024 21:07:30 +0300 Subject: Core/Misc: Cleanup account instance times data from DB on account deletion. --- src/server/game/Accounts/AccountMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server') diff --git a/src/server/game/Accounts/AccountMgr.cpp b/src/server/game/Accounts/AccountMgr.cpp index aa3f59c9ccb..a0b7bf1e23d 100644 --- a/src/server/game/Accounts/AccountMgr.cpp +++ b/src/server/game/Accounts/AccountMgr.cpp @@ -122,6 +122,10 @@ AccountOpResult AccountMgr::DeleteAccount(uint32 accountId) stmt->setUInt32(0, accountId); CharacterDatabase.Execute(stmt); + stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_ACCOUNT_INSTANCE_LOCK_TIMES); + stmt->setUInt32(0, accountId); + CharacterDatabase.Execute(stmt); + LoginDatabaseTransaction trans = LoginDatabase.BeginTransaction(); loginStmt = LoginDatabase.GetPreparedStatement(LOGIN_DEL_ACCOUNT); -- cgit v1.2.3