diff --git a/common/shareddb.cpp b/common/shareddb.cpp index 593abec4d..11bc00139 100644 --- a/common/shareddb.cpp +++ b/common/shareddb.cpp @@ -1605,7 +1605,7 @@ uint8 SharedDatabase::GetTrainLevel(uint8 Class_, SkillType Skill, uint8 Level) void SharedDatabase::DBLoadDamageShieldTypes(SPDat_Spell_Struct* sp, int32 iMaxSpellID) { - const char *DSQuery = "SELECT `spellid`, `type` from `damageshieldtypes` WHERE `spellid` >0 " + const char *DSQuery = "SELECT `spellid`, `type` from `damageshieldtypes` WHERE `spellid` > 0 " "AND `spellid` <= %i"; const char *ERR_MYSQLERROR = "Error in DBLoadDamageShieldTypes: %s %s"; diff --git a/common/shareddb.h b/common/shareddb.h index b2963df8f..c3d948aca 100644 --- a/common/shareddb.h +++ b/common/shareddb.h @@ -87,7 +87,6 @@ public: bool LoadItems(); bool LoadLoot(); bool LoadNPCFactionLists(); - bool LoadSkillCaps(); bool GetCommandSettings(map &commands); const Item_Struct* IterateItems(uint32* NextIndex); bool DBLoadItems(int32 iItemCount, uint32 iMaxItemID); @@ -99,6 +98,8 @@ public: int GetMaxSpellID(); void LoadSpells(void *data, int max_spells); + void LoadSkillCaps(void *data); + bool LoadSkillCaps(); protected: void SDBInitVars();