From 12bde7434a67add7f77d2d79ea01649b70379141 Mon Sep 17 00:00:00 2001 From: KimLS Date: Wed, 20 Feb 2013 11:26:23 -0800 Subject: [PATCH] Starting on skill caps today --- common/shareddb.cpp | 2 +- common/shareddb.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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();