* Added actual loading of the addons table... This was missing in the original commit.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-01-29 11:56:48 +01:00
parent f5e267da16
commit 39a260d10d
2 changed files with 5 additions and 4 deletions

View File

@@ -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);

View File

@@ -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);