[tiled] r767 - trunk/src/tiled/core
tiled-svn at biggeruniverse.com
tiled-svn at biggeruniverse.com
Sun Jul 6 03:34:19 PDT 2008
Author: bjorn
Date: 2008-07-06 05:34:18 -0500 (Sun, 06 Jul 2008)
New Revision: 767
Modified:
trunk/src/tiled/core/MapObject.java
Log:
Make sure object type is initialized to prevent null pointer exception on saving
Modified: trunk/src/tiled/core/MapObject.java
===================================================================
--- trunk/src/tiled/core/MapObject.java 2008-07-05 16:34:50 UTC (rev 766)
+++ trunk/src/tiled/core/MapObject.java 2008-07-06 10:34:18 UTC (rev 767)
@@ -26,12 +26,10 @@
protected Rectangle bounds = new Rectangle();
protected boolean bVisible = true;
protected String name = "Object";
- protected String source, type;
+ protected String source;
+ protected String type = "";
protected int width, height;
- public MapObject() {
- }
-
public MapObject(int x, int y, int width, int height) {
this.x = x;
this.y = y;
More information about the tiled-commit
mailing list