Merge pull request #1252 from TwilitRealm/erd

clear e_rd static boss ptr on delete
This commit is contained in:
TakaRikka
2026-05-13 19:31:35 -07:00
committed by GitHub
+6
View File
@@ -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");