mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
[Cleanup] Remove unused iterator from LoadCharacterDisciplines (#3012)
This commit is contained in:
parent
ef214f91e9
commit
a78c754c0e
@ -827,14 +827,12 @@ bool ZoneDatabase::LoadCharacterDisciplines(uint32 character_id, PlayerProfile_S
|
||||
return false;
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
/* Initialize Disciplines */
|
||||
memset(pp->disciplines.values, 0, (sizeof(pp->disciplines.values[0]) * MAX_PP_DISCIPLINES));
|
||||
for (auto& row : character_disciplines) {
|
||||
if (i < MAX_PP_DISCIPLINES && IsValidSpell(row.disc_id)) {
|
||||
if (row.slot_id < MAX_PP_DISCIPLINES && IsValidSpell(row.disc_id)) {
|
||||
pp->disciplines.values[row.slot_id] = row.disc_id;
|
||||
}
|
||||
++i;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user