Added missing call to LoadDB2Stores( )

The core was not loading the DB2 files.
This commit is contained in:
Charles A Edwards 2016-08-09 10:23:43 +01:00 committed by Antz
parent 1bf9a70cbd
commit 8580efa00f

View file

@ -1018,11 +1018,12 @@ void World::SetInitialWorldSettings()
///- Remove the bones (they should not exist in DB though) and old corpses after a restart
CharacterDatabase.PExecute("DELETE FROM corpse WHERE corpse_type = '0' OR time < (UNIX_TIMESTAMP()-'%u')", 3 * DAY);
///- Load the DBC files
///- Load the DBC and DB2 files
sLog.outString("Initialize data stores...");
LoadDBCStores(m_dataPath);
DetectDBCLang();
sObjectMgr.SetDBCLocaleIndex(GetDefaultDbcLocale()); // Get once for all the locale index of DBC language (console/broadcasts)
LoadDB2Stores(m_dataPath);
sLog.outString("Loading SpellTemplate...");
sObjectMgr.LoadSpellTemplate();