diff --git a/engine/src/core/com/jme3/input/FlyByCamera.java b/engine/src/core/com/jme3/input/FlyByCamera.java index aa87172a7..7b439efe6 100644 --- a/engine/src/core/com/jme3/input/FlyByCamera.java +++ b/engine/src/core/com/jme3/input/FlyByCamera.java @@ -225,7 +225,9 @@ public class FlyByCamera implements AnalogListener, ActionListener { } for (String s : mappings) { - inputManager.deleteMapping( s ); + if (inputManager.hasMapping(s)) { + inputManager.deleteMapping( s ); + } } inputManager.removeListener(this);