fix shadow resolution changing causing a crash

operator delete[] was used instead of JKR_DELETE_ARRAY, which causes standard allocator to freak out
This commit is contained in:
CraftyBoss
2026-04-14 02:45:16 -07:00
parent 93450dce7b
commit ddfe21b18a
+1 -1
View File
@@ -1459,7 +1459,7 @@ void dDlst_shadowControl_c::init() {
#else
u32 buffer_size = GXGetTexBufferSize(size, size, 5, GX_DISABLE, 0);
#endif
delete mShadowTexData[i];
JKR_DELETE_ARRAY(mShadowTexData[i]);
mShadowTexData[i] = JKR_NEW_ARRAY_ARGS(u8, buffer_size, 0x20);
mShadowTexObj[i].reset();