mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[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:
parent
754634fe42
commit
1c7e46a4a8
3 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue