Explorar o código

Merge pull request #979 from mitm001/master

Fixed how AppSetting mergeFrom checks for key mapping.
Paul Speed %!s(int64=6) %!d(string=hai) anos
pai
achega
f73d10bb9c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      jme3-core/src/main/java/com/jme3/system/AppSettings.java

+ 1 - 1
jme3-core/src/main/java/com/jme3/system/AppSettings.java

@@ -274,7 +274,7 @@ public final class AppSettings extends HashMap<String, Object> {
      */
     public void mergeFrom(AppSettings other) {
         for (String key : other.keySet()) {
-            if (get(key) == null) {
+            if( !this.containsKey(key) ) {
                 put(key, other.get(key));
             }
         }