Fixed subdivision loss during upgrade.

This commit is contained in:
ryanhamshire 2015-12-10 13:52:45 -08:00
parent 4e7da93eac
commit 2f816c1a9b

View File

@ -498,7 +498,7 @@ public abstract class DataStore
synchronized public void saveClaim(Claim claim) synchronized public void saveClaim(Claim claim)
{ {
//ensure a unique identifier for the claim which will be used to name the file on disk //ensure a unique identifier for the claim which will be used to name the file on disk
if(claim.id == null) if(claim.id == null || claim.id == -1)
{ {
claim.id = this.nextClaimID; claim.id = this.nextClaimID;
this.incrementNextClaimID(); this.incrementNextClaimID();