From f0db0b82fb101a9e5bf17db12dad7cb992b28788 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sat, 19 Nov 2016 21:21:11 +0100 Subject: [PATCH] fix #55 --- src/yugecin/opsudance/ui/SBOverlay.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yugecin/opsudance/ui/SBOverlay.java b/src/yugecin/opsudance/ui/SBOverlay.java index c8a34991..b26dde05 100644 --- a/src/yugecin/opsudance/ui/SBOverlay.java +++ b/src/yugecin/opsudance/ui/SBOverlay.java @@ -184,6 +184,8 @@ public class SBOverlay { public void setGameObjects(GameObject[] gameObjects) { if (this.gameObjects.length != gameObjects.length) { optionsMap = new HashMap[gameObjects.length]; + } + if (optionsMap.length > 0) { // copy all current settings in first obj map optionsMap[0] = new HashMap<>(); for (Options.GameOption o : options.getSavedOptionList()) {