fix: safeguard

This commit is contained in:
cha0s 2019-03-27 19:25:10 -05:00
parent 0b67d40a36
commit 5bab361d43

View File

@ -113,7 +113,7 @@ class InformedBase extends Trait {
}
// Reduce entities.
diff.room.layers[index].entityList = entityReducer(
diff.room.layers[index].entityList,
diff.room.layers[index].entityList || {},
indexedEntities,
);
}