Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit e29ebd4

Browse files
committed
Fix object relayering
1 parent b761349 commit e29ebd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/card.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ Exec_stat MCCard::relayer(MCControl *optr, uint2 newlayer)
17951795
optr->setparent(this);
17961796
getstack()->appendcontrol(optr);
17971797

1798-
if (t_insert_iter == objptrs)
1798+
if (foundobj == nullptr)
17991799
{
18001800
if (t_before)
18011801
newptr->insertto(objptrs);

0 commit comments

Comments
 (0)