From 63bbe83a004396e2e4b83611343705859f494ac2 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Thu, 3 Sep 2009 22:12:16 +0000 Subject: [PATCH] Those who are visiting scene objects in this manner don't expect that their ObjectInfo is going to get stomped on by the next iteration. Let's do this safely and make each visit get its own object - it's also much more consistent with visiting interesting objects. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@855 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/java/com/threerings/miso/data/SparseMisoSceneModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/miso/data/SparseMisoSceneModel.java b/src/java/com/threerings/miso/data/SparseMisoSceneModel.java index 387d8b5a..7b2b0993 100644 --- a/src/java/com/threerings/miso/data/SparseMisoSceneModel.java +++ b/src/java/com/threerings/miso/data/SparseMisoSceneModel.java @@ -322,8 +322,8 @@ public class SparseMisoSceneModel extends MisoSceneModel visitor.visit(oinfo); } if (!interestingOnly) { - ObjectInfo info = new ObjectInfo(); for (int oo = 0; oo < sect.objectTileIds.length; oo++) { + ObjectInfo info = new ObjectInfo(); info.tileId = sect.objectTileIds[oo]; info.x = sect.objectXs[oo]; info.y = sect.objectYs[oo];