mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-16 12:52:25 +00:00
memset size fix to calc current size of 400 bytes for discipline initialization
This commit is contained in:
parent
16ba3eb11e
commit
9be0d3b090
@ -1038,7 +1038,7 @@ bool ZoneDatabase::LoadCharacterDisciplines(uint32 character_id, PlayerProfile_S
|
||||
auto results = database.QueryDatabase(query);
|
||||
int i = 0;
|
||||
/* Initialize Disciplines */
|
||||
memset(pp->disciplines.values, 0, MAX_PP_DISCIPLINES);
|
||||
memset(pp->disciplines.values, 0, (sizeof(pp->disciplines.values[0]) * MAX_PP_DISCIPLINES));
|
||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||
if (i < MAX_PP_DISCIPLINES){
|
||||
pp->disciplines.values[i] = atoi(row[0]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user