LoadCreatureClassLvlStats() fixed

LoadCreatureClassLvlStats() taken from Two due to Three's own
implementation of the function not working.
The table creature_template_classlevelstats has now been added to Three,
therefore this function needed to be working.

World database revision updated.
This commit is contained in:
Charles A Edwards 2016-08-11 12:38:30 +01:00 committed by Antz
parent a2537e7954
commit 323ad9b251
2 changed files with 62 additions and 58 deletions

View file

@ -882,8 +882,10 @@ 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)
{
@ -899,6 +901,7 @@ void ObjectMgr::LoadCreatureClassLvlStats()
BarGoLink bar(result->GetRowCount());
uint32 DataCount = 0;
sLog.outErrorDb("Processing rows of creature_template_classlevelstats table");
do
{
Field* fields = result->Fetch();
@ -937,6 +940,7 @@ void ObjectMgr::LoadCreatureClassLvlStats()
}
++DataCount;
} while (result->NextRow());
sLog.outErrorDb("Finished processing rows of creature_template_classlevelstats table");
delete result;

View file

@ -37,7 +37,7 @@
#define CHAR_DB_UPDATE_DESCRIPTION "match_client_limits"
#define WORLD_DB_VERSION_NR 21
#define WORLD_DB_STRUCTURE_NR 1
#define WORLD_DB_CONTENT_NR 0
#define WORLD_DB_STRUCTURE_NR 2
#define WORLD_DB_CONTENT_NR 1
#define WORLD_DB_UPDATE_DESCRIPTION "revision_refactor"
#endif // __REVISION_H__