Skip to content

Commit

Permalink
account_id explicit non-zero condition check
Browse files Browse the repository at this point in the history
Co-authored-by: Haru <haru@dotalux.com>
  • Loading branch information
jasonch35 and MishimaHaruna authored Jul 31, 2024
1 parent ff322df commit 84569df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -9971,7 +9971,7 @@ static BUILDIN(getpartymember)

if (p != NULL) {
for (int i = 0; i < MAX_PARTY; i++) {
if (p->party.member[i].account_id) {
if (p->party.member[i].account_id != 0) {
switch (type) {
case PT_MEMBER_NAME:
script->set_reg(st, sd, reference_uid(id, num), varname, (const void *)h64BPTRSIZE(p->party.member[i].name), reference_getref(data));
Expand Down

0 comments on commit 84569df

Please sign in to comment.