mirror of https://github.com/rusefi/RomRaider.git
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:
parent
4747f9d050
commit
165715da4e
|
@ -367,8 +367,13 @@ public class DOMRomUnmarshaller {
|
||||||
for (int i = 0; i < scales.size(); i++) {
|
for (int i = 0; i < scales.size(); i++) {
|
||||||
|
|
||||||
// check whether name matches base and set scale if so
|
// check whether name matches base and set scale if so
|
||||||
if (scales.get(i).getName().equalsIgnoreCase(base))
|
if (scales.get(i).getName().equalsIgnoreCase(base)) {
|
||||||
scale = scales.get(i);
|
try {
|
||||||
|
scale = (Scale)ObjectCloner.deepCopy((Object)scales.get(i));
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue