mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 23:42:24 +00:00
Sending the client a spell value that is more inline with what it expects when no spell is set.
This commit is contained in:
parent
11773208df
commit
413538f1b5
@ -958,7 +958,12 @@ bool ZoneDatabase::LoadCharacterMemmedSpells(uint32 character_id, PlayerProfile_
|
|||||||
"FROM "
|
"FROM "
|
||||||
"`character_memmed_spells` "
|
"`character_memmed_spells` "
|
||||||
"WHERE `id` = %u ORDER BY `slot_id`", character_id);
|
"WHERE `id` = %u ORDER BY `slot_id`", character_id);
|
||||||
auto results = database.QueryDatabase(query); int i = 0;
|
auto results = database.QueryDatabase(query);
|
||||||
|
int i = 0;
|
||||||
|
/* Initialize Spells */
|
||||||
|
for (i = 0; i < MAX_PP_MEMSPELL; i++){
|
||||||
|
pp->mem_spells[i] = 0xFFFFFFFF;
|
||||||
|
}
|
||||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||||
i = atoi(row[0]);
|
i = atoi(row[0]);
|
||||||
if (i < MAX_PP_MEMSPELL){
|
if (i < MAX_PP_MEMSPELL){
|
||||||
@ -976,14 +981,15 @@ bool ZoneDatabase::LoadCharacterSpellBook(uint32 character_id, PlayerProfile_Str
|
|||||||
"FROM "
|
"FROM "
|
||||||
"`character_spells` "
|
"`character_spells` "
|
||||||
"WHERE `id` = %u ORDER BY `slot_id`", character_id);
|
"WHERE `id` = %u ORDER BY `slot_id`", character_id);
|
||||||
auto results = database.QueryDatabase(query); int i = 0;
|
auto results = database.QueryDatabase(query);
|
||||||
|
int i = 0;
|
||||||
/* Initialize Spells */
|
/* Initialize Spells */
|
||||||
for (i = 0; i < MAX_PP_SPELLBOOK; i++){
|
for (i = 0; i < MAX_PP_SPELLBOOK; i++){
|
||||||
pp->spell_book[i] = 0;
|
pp->spell_book[i] = 0xFFFFFFFF;
|
||||||
}
|
}
|
||||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||||
i = atoi(row[0]);
|
i = atoi(row[0]);
|
||||||
if (i < MAX_PP_SPELLBOOK){
|
if (i < MAX_PP_SPELLBOOK){
|
||||||
pp->spell_book[i] = atoi(row[1]);
|
pp->spell_book[i] = atoi(row[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user