Merge pull request #979 from mitm001/master

Fixed how AppSetting mergeFrom checks for key mapping.
accellbaker
Paul Speed 6 years ago committed by GitHub
commit f73d10bb9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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));
}
}

Loading…
Cancel
Save