diff --git a/src/window/Events.cpp b/src/window/Events.cpp index cd94946c..6c237a28 100644 --- a/src/window/Events.cpp +++ b/src/window/Events.cpp @@ -115,7 +115,7 @@ void Events::bind(const std::string& name, inputtype type, mousecode code) { } void Events::bind(const std::string& name, inputtype type, int code) { - bindings.emplace(name, Binding(type, code)); + bindings.try_emplace(name, Binding(type, code)); } void Events::rebind(const std::string& name, inputtype type, int code) {