Many fixes made to get the server to run again

Many, many fixes had to be made due to server failing to start up after
last major implementation of cmangos comits.
This commit is contained in:
Charles A Edwards 2016-08-23 10:50:47 +01:00 committed by Antz
parent b75ccd56a9
commit cb8c076be9
15 changed files with 132 additions and 154 deletions

View file

@ -908,10 +908,8 @@ void ObjectMgr::LoadCreatureClassLvlStats()
queryStr.append(str.str().c_str());
}
sLog.outErrorDb("Querying creature_template_classlevelstats table");
queryStr.append(" FROM `creature_template_classlevelstats` ORDER BY `Class`, `Level`");
QueryResult* result = WorldDatabase.Query(queryStr.c_str());
sLog.outErrorDb("Finished querying creature_template_classlevelstats table");
if (!result)
{
@ -927,7 +925,6 @@ void ObjectMgr::LoadCreatureClassLvlStats()
BarGoLink bar(result->GetRowCount());
uint32 DataCount = 0;
sLog.outErrorDb("Processing rows of creature_template_classlevelstats table");
do
{
Field* fields = result->Fetch();
@ -966,7 +963,6 @@ void ObjectMgr::LoadCreatureClassLvlStats()
}
++DataCount;
} while (result->NextRow());
sLog.outErrorDb("Finished processing rows of creature_template_classlevelstats table");
delete result;