Core/Database: Fixed HotfixDatabase not being closed on shutdown with --update-databases-only

Closes #29599
This commit is contained in:
Shauren
2024-01-23 00:23:59 +01:00
parent b3ccf7b710
commit 644a479e28
2 changed files with 2 additions and 3 deletions

View File

@@ -1812,8 +1812,6 @@ void World::SetInitialWorldSettings()
sDB2Manager.LoadHotfixData(m_availableDbcLocaleMask);
TC_LOG_INFO("misc", "Loading hotfix optional data...");
sDB2Manager.LoadHotfixOptionalData(m_availableDbcLocaleMask);
///- Close hotfix database - it is only used during DB2 loading
HotfixDatabase.Close();
///- Load M2 fly by cameras
LoadM2Cameras(m_dataPath);
///- Load GameTables

View File

@@ -675,8 +675,9 @@ bool StartDB()
void StopDB()
{
CharacterDatabase.Close();
HotfixDatabase.Close();
WorldDatabase.Close();
CharacterDatabase.Close();
LoginDatabase.Close();
MySQL::Library_End();