Skip to content

Commit 0f77bd3

Browse files
committed
Removing failed child machine info
1 parent a738925 commit 0f77bd3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/brogue/Architect.c

+7
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,13 @@ static boolean buildAMachineOrChildMachine(enum machineTypes bp,
16311631
}
16321632
break;
16331633
}
1634+
else {
1635+
// Remove failed machine from info
1636+
deleteAllMachineInfo(thisMachineInfo->childMachineInfo);
1637+
machineInfo *theChildInfo = (machineInfo *) malloc(sizeof(machineInfo));
1638+
memset(theChildInfo, '\0', sizeof(machineInfo));
1639+
thisMachineInfo->childMachineInfo = theChildInfo;
1640+
}
16341641
}
16351642

16361643
if (!i) {

0 commit comments

Comments
 (0)