mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
* Added actual loading of the addons table... This was missing in the original commit.
--HG-- branch : trunk
This commit is contained in:
@@ -49,9 +49,7 @@ void AddonMgr::LoadFromDB()
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 total_records = result->GetRowCount();
|
||||
|
||||
barGoLink bar(total_records);
|
||||
barGoLink bar(result->GetRowCount());
|
||||
uint32 count = 0;
|
||||
Field *fields;
|
||||
|
||||
@@ -61,7 +59,7 @@ void AddonMgr::LoadFromDB()
|
||||
bar.step();
|
||||
count++;
|
||||
|
||||
std::string name = fields[0].GetString();
|
||||
std::string name = fields[0].GetCppString();
|
||||
uint32 crc = fields[1].GetUInt32();
|
||||
|
||||
SavedAddon addon(name, crc);
|
||||
|
||||
@@ -1549,6 +1549,9 @@ void World::SetInitialWorldSettings()
|
||||
sLog.outString("Loading GM tickets...");
|
||||
objmgr.LoadGMTickets();
|
||||
|
||||
sLog.outString("Loading client addons...");
|
||||
sAddonMgr.LoadFromDB();
|
||||
|
||||
///- Handle outdated emails (delete/return)
|
||||
sLog.outString("Returning old mails...");
|
||||
objmgr.ReturnOrDeleteOldMails(false);
|
||||
|
||||
Reference in New Issue
Block a user