[Editor] Fix issue with adding objects to ObjectLayer

This commit is contained in:
2021-11-28 23:24:41 +01:00
parent e04c125d22
commit 5650154c23

View File

@@ -11,7 +11,7 @@ class ObjectLayer(
name: String,
rows: Int,
columns: Int,
objects: List<MapObject> = emptyList(),
objects: List<MapObject> = mutableListOf(),
passageMap: Array<Array<PassageAbility>> = Array(rows) { Array(columns) { PassageAbility.ALLOW } }
) : Layer {
var passageMap = passageMap