mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-27 00:45:10 -04:00
monkey crash fix (#2034)
* monkey fix 🐒 * wrap saru_p clear in target_pc * Clear monkey leader pointer on delete --------- Co-authored-by: matthewdavidrichardanderson <matthewdavidrichardanderson@mfb.com> Co-authored-by: Luke Street <luke@street.dev>
This commit is contained in:
committed by
GitHub
parent
d0894853d7
commit
b07fb50128
@@ -6882,6 +6882,16 @@ static int daNpc_Ks_Delete(npc_ks_class* i_this) {
|
||||
i_this->model->stopZelAnime();
|
||||
}
|
||||
|
||||
#if TARGET_PC
|
||||
if (leader == i_this) {
|
||||
leader = NULL;
|
||||
}
|
||||
|
||||
if (saru_p[i_this->set_id] == i_this) {
|
||||
saru_p[i_this->set_id] = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user