[12055] Add some defines for hard-coded field-indexes that need special convertion on SQL-Storage loading - Idea by Vladimir

This commit is contained in:
Schmoozerd 2012-07-18 13:48:51 +02:00
parent 754634fe42
commit 1c7e46a4a8
3 changed files with 8 additions and 3 deletions

View file

@ -6776,7 +6776,7 @@ struct SQLSpellLoader : public SQLStorageLoaderBase<SQLSpellLoader>
template<class S, class D>
void default_fill(uint32 field_pos, S src, D &dst)
{
if (field_pos == 65) // EquippedItemClass
if (field_pos == LOADED_SPELLDBC_FIELD_POS_EQUIPPED_ITEM_CLASS)
dst = D(-1);
else
dst = D(src);
@ -6784,7 +6784,7 @@ struct SQLSpellLoader : public SQLStorageLoaderBase<SQLSpellLoader>
void default_fill_to_str(uint32 field_pos, char const* /*src*/, char * & dst)
{
if (field_pos == 132) // SpellName[0]
if (field_pos == LOADED_SPELLDBC_FIELD_POS_SPELLNAME_0)
{
dst = SERVER_SIDE_SPELL;
}