Fix crash

This commit is contained in:
tobspr 2020-08-18 20:07:44 +02:00
parent 296b76bf11
commit 1a6c91f4e9
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ export class LogicGateSystem extends GameSystemWithFilter {
const lowerLayer = /** @type {import("../shape_definition").ShapeLayer} */ (definition.layers[0]);
const topRightContent = lowerLayer[0];
if (!topRightContent) {
if (!topRightContent || topRightContent.subShape === null) {
return [null, null];
}