From 165715da4e983190e8c7d29458f2f9709497f99b Mon Sep 17 00:00:00 2001 From: Jared Gould Date: Tue, 25 Jul 2006 16:00:16 +0000 Subject: [PATCH] Fixed scalingbase not being cloned (causing changes to apply to all instances) git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@176 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d --- src/enginuity/xml/DOMRomUnmarshaller.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/enginuity/xml/DOMRomUnmarshaller.java b/src/enginuity/xml/DOMRomUnmarshaller.java index 4c8c465f..e53c2c9e 100644 --- a/src/enginuity/xml/DOMRomUnmarshaller.java +++ b/src/enginuity/xml/DOMRomUnmarshaller.java @@ -367,8 +367,13 @@ public class DOMRomUnmarshaller { for (int i = 0; i < scales.size(); i++) { // check whether name matches base and set scale if so - if (scales.get(i).getName().equalsIgnoreCase(base)) - scale = scales.get(i); + if (scales.get(i).getName().equalsIgnoreCase(base)) { + try { + scale = (Scale)ObjectCloner.deepCopy((Object)scales.get(i)); + } catch (Exception ex) { + ex.printStackTrace(); + } + } } }