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
This commit is contained in:
Jared Gould 2006-07-25 16:00:16 +00:00
parent 4747f9d050
commit 165715da4e
1 changed files with 7 additions and 2 deletions

View File

@ -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();
}
}
}
}