Skip to content
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

Commit dba0a51

Browse files
Fix an invalid object handle dereference in the breakpoint code
1 parent 6ede08b commit dba0a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void MCB_clearbreaks(MCObject *p_for_object)
380380
{
381381
for(size_t n = 0; n < MCnbreakpoints; ++n)
382382
{
383-
if (p_for_object == nil || MCbreakpoints[n].object == p_for_object)
383+
if (p_for_object == nil || !MCbreakpoints[n].object || MCbreakpoints[n].object == p_for_object)
384384
{
385385
MCbreakpoints[n].Clear();
386386
}

0 commit comments

Comments
 (0)