Skip to content

Commit 388a4fa

Browse files
committed
[[ AccelRender ]] Prevent crash due to incorrect object parent after ungroup
1 parent 0b0d63a commit 388a4fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

engine/src/card.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,8 +2557,7 @@ void MCCard::erasefocus(MCObject *p_object)
25572557

25582558
MCObjptr *MCCard::newcontrol(MCControl *cptr, Boolean needredraw)
25592559
{
2560-
if (opened)
2561-
cptr->setparent(this);
2560+
cptr->setparent(this);
25622561

25632562
MCObjptr *newptr = new (nothrow) MCObjptr;
25642563
newptr->setparent(this);

0 commit comments

Comments
 (0)