Changeset 34 for trunk/src/game/ObjectMgr.cpp
- Timestamp:
- 11/19/08 13:25:37 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/ObjectMgr.cpp
r28 r34 2082 2082 QueryResult *result = WorldDatabase.Query("SELECT race, class, Spell, Active FROM playercreateinfo_spell"); 2083 2083 2084 QueryResult *result = NULL; 2085 if(sWorld.getConfig(CONFIG_START_ALL_SPELLS)) 2086 result = WorldDatabase.Query("SELECT race, class, Spell, Active FROM playercreateinfo_spell_custom"); 2087 else 2088 result = WorldDatabase.Query("SELECT race, class, Spell, Active FROM playercreateinfo_spell"); 2089 2084 2090 uint32 count = 0; 2085 2091 … … 2090 2096 sLog.outString(); 2091 2097 sLog.outString( ">> Loaded %u player create spells", count ); 2092 sLog.outErrorDb( "Error loading `playercreateinfo_spell` tableor empty table.");2098 sLog.outErrorDb( "Error loading player starting spells or empty table."); 2093 2099 } 2094 2100 else