Skip to content

Commit 04b2dc6

Browse files
RagathRagath
authored andcommitted
RectangleObject fix
1 parent 97fb296 commit 04b2dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TiledLib/TmxLayers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public static BaseObject ReadObject(this XmlReader reader)
213213
Id = id,
214214
X = x,
215215
Y = y,
216-
Width = w.Value,
217-
Height = h.Value,
216+
Width = w ?? 0,
217+
Height = h ?? 0,
218218
Name = name,
219219
ObjectType = type
220220
};

0 commit comments

Comments
 (0)