mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-17 22:12:24 +00:00
Fix out of bounds error in SaveCharacterLeadershipAAs
This commit is contained in:
parent
28ac586ed8
commit
c328829610
@ -1295,7 +1295,7 @@ bool ZoneDatabase::SaveCharacterPotionBelt(uint32 character_id, uint8 potion_id,
|
||||
|
||||
bool ZoneDatabase::SaveCharacterLeadershipAA(uint32 character_id, PlayerProfile_Struct* pp){
|
||||
uint8 first_entry = 0; std::string query = "";
|
||||
for (int i = 0; i <= MAX_LEADERSHIP_AA_ARRAY; i++){
|
||||
for (int i = 0; i < MAX_LEADERSHIP_AA_ARRAY; i++){
|
||||
if (pp->leader_abilities.ranks[i] > 0){
|
||||
if (first_entry != 1){
|
||||
query = StringFormat("REPLACE INTO `character_leadership_abilities` (id, slot, rank) VALUES (%i, %u, %u)", character_id, i, pp->leader_abilities.ranks[i]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user