fix potential crash with heap name display

This commit is contained in:
TakaRikka
2026-03-21 01:50:20 -07:00
parent 775dad0633
commit 1e79756929
+3 -1
View File
@@ -736,7 +736,9 @@ u8 var_r30 = fopAcM::HeapAdjustEntry;
fopAcM::HeapAdjustEntry = var_r30;
#if TARGET_PC
JKRHEAP_NAMEF(i_actor->heap, "Actor %d (%s)", i_actor->id, GetProcName(i_actor->profname));
if (result) {
JKRHEAP_NAMEF(i_actor->heap, "Actor %d (%s)", i_actor->id, GetProcName(i_actor->profname));
}
#endif
return result;