diff options
author | Mykhailo Redko <ovitnez@gmail.com> | 2024-06-17 21:07:30 +0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-06-27 14:49:40 +0200 |
commit | 0ebda1168aa08d2b4539de6304c3cbd806448152 (patch) | |
tree | 78f1c50d6d9b5f1d3a8b70dfa92432caabbe5700 | |
parent | 0ac9f43afd9c928d32f45a8a11429859dcc65dc7 (diff) |
Core/Misc: Cleanup account instance times data from DB on account deletion.
-rw-r--r-- | src/server/game/Accounts/AccountMgr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |