mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
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:
parent
a2537e7954
commit
323ad9b251
2 changed files with 62 additions and 58 deletions
|
|
@ -882,8 +882,10 @@ void ObjectMgr::LoadCreatureClassLvlStats()
|
||||||
queryStr.append(str.str().c_str());
|
queryStr.append(str.str().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sLog.outErrorDb("Querying creature_template_classlevelstats table");
|
||||||
queryStr.append(" FROM `creature_template_classlevelstats` ORDER BY `Class`, `Level`");
|
queryStr.append(" FROM `creature_template_classlevelstats` ORDER BY `Class`, `Level`");
|
||||||
QueryResult* result = WorldDatabase.Query(queryStr.c_str());
|
QueryResult* result = WorldDatabase.Query(queryStr.c_str());
|
||||||
|
sLog.outErrorDb("Finished querying creature_template_classlevelstats table");
|
||||||
|
|
||||||
if (!result)
|
if (!result)
|
||||||
{
|
{
|
||||||
|
|
@ -899,6 +901,7 @@ void ObjectMgr::LoadCreatureClassLvlStats()
|
||||||
BarGoLink bar(result->GetRowCount());
|
BarGoLink bar(result->GetRowCount());
|
||||||
uint32 DataCount = 0;
|
uint32 DataCount = 0;
|
||||||
|
|
||||||
|
sLog.outErrorDb("Processing rows of creature_template_classlevelstats table");
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
Field* fields = result->Fetch();
|
Field* fields = result->Fetch();
|
||||||
|
|
@ -937,6 +940,7 @@ void ObjectMgr::LoadCreatureClassLvlStats()
|
||||||
}
|
}
|
||||||
++DataCount;
|
++DataCount;
|
||||||
} while (result->NextRow());
|
} while (result->NextRow());
|
||||||
|
sLog.outErrorDb("Finished processing rows of creature_template_classlevelstats table");
|
||||||
|
|
||||||
delete result;
|
delete result;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
#define CHAR_DB_UPDATE_DESCRIPTION "match_client_limits"
|
#define CHAR_DB_UPDATE_DESCRIPTION "match_client_limits"
|
||||||
|
|
||||||
#define WORLD_DB_VERSION_NR 21
|
#define WORLD_DB_VERSION_NR 21
|
||||||
#define WORLD_DB_STRUCTURE_NR 1
|
#define WORLD_DB_STRUCTURE_NR 2
|
||||||
#define WORLD_DB_CONTENT_NR 0
|
#define WORLD_DB_CONTENT_NR 1
|
||||||
#define WORLD_DB_UPDATE_DESCRIPTION "revision_refactor"
|
#define WORLD_DB_UPDATE_DESCRIPTION "revision_refactor"
|
||||||
#endif // __REVISION_H__
|
#endif // __REVISION_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue