mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 06:50:43 -04:00
Merge pull request #1252 from TwilitRealm/erd
clear e_rd static boss ptr on delete
This commit is contained in:
@@ -7053,6 +7053,12 @@ static int daE_RD_IsDelete(e_rd_class*) {
|
||||
}
|
||||
|
||||
static int daE_RD_Delete(e_rd_class* i_this) {
|
||||
#if TARGET_PC
|
||||
if (boss == i_this) {
|
||||
boss = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
fopEn_enemy_c* enemy = (fopEn_enemy_c*)&i_this->enemy;
|
||||
fopAcM_RegisterDeleteID(i_this, "E_RD");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user