Fix softlock when entering Faron cave (and maybe others) in Release

This commit is contained in:
Lurs
2026-03-30 09:33:54 +02:00
parent 3f3f70f164
commit cda8f5dc67
4 changed files with 30 additions and 0 deletions
+8
View File
@@ -2662,10 +2662,18 @@ int daE_OC_c::_delete() {
return 1;
}
#if TARGET_PC
static int daE_OC_Delete(daE_OC_c* i_this) {
fopAcM_RegisterDeleteID(i_this, "E_OC");
i_this->_delete();
return 1;
}
#else
static void daE_OC_Delete(daE_OC_c* i_this) {
fopAcM_RegisterDeleteID(i_this, "E_OC");
i_this->_delete();
}
#endif
int daE_OC_c::CreateHeap() {
J3DModelData* modelData = (J3DModelData*) dComIfG_getObjectRes(mName, 0x3);