From 548acf53e88084432bc105b5292146bb94eff335 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 7 Dec 2001 02:10:14 +0000 Subject: [PATCH] Have to update _nextLocationId when a location is added, in case its location id is bigger than the biggest we've seen. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@750 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../whirled/spot/tools/EditableSpotSceneImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/whirled/spot/tools/EditableSpotSceneImpl.java b/src/java/com/threerings/whirled/spot/tools/EditableSpotSceneImpl.java index 4b72c1f86..d54cad25c 100644 --- a/src/java/com/threerings/whirled/spot/tools/EditableSpotSceneImpl.java +++ b/src/java/com/threerings/whirled/spot/tools/EditableSpotSceneImpl.java @@ -1,5 +1,5 @@ // -// $Id: EditableSpotSceneImpl.java,v 1.8 2001/12/05 09:20:10 mdb Exp $ +// $Id: EditableSpotSceneImpl.java,v 1.9 2001/12/07 02:10:14 mdb Exp $ package com.threerings.whirled.tools.spot; @@ -142,6 +142,10 @@ public class EditableSpotSceneImpl extends EditableSceneImpl { // add the location to the end of the location list _delegate.getLocations().add(loc); + + // make sure we've got the highest location id in our next + // location id field + _nextLocationId = Math.max(_nextLocationId, loc.locationId); } // documentation inherited