Skip to content

Commit

Permalink
explicit party_data null 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 a79cc0d commit ff322df
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 @@ -9969,7 +9969,7 @@ static BUILDIN(getpartymember)
}
}

if (p) {
if (p != NULL) {
for (int i = 0; i < MAX_PARTY; i++) {
if (p->party.member[i].account_id) {
switch (type) {
Expand Down

0 comments on commit ff322df

Please sign in to comment.