From ddfe21b18a59feb8b2934ae7908564fbf0b1a495 Mon Sep 17 00:00:00 2001 From: CraftyBoss Date: Tue, 14 Apr 2026 02:45:16 -0700 Subject: [PATCH] fix shadow resolution changing causing a crash operator delete[] was used instead of JKR_DELETE_ARRAY, which causes standard allocator to freak out --- src/d/d_drawlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d/d_drawlist.cpp b/src/d/d_drawlist.cpp index 2ef4732455..24798f4482 100644 --- a/src/d/d_drawlist.cpp +++ b/src/d/d_drawlist.cpp @@ -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();