diff --git a/src/user_config.cpp b/src/user_config.cpp index 96f1be061..72c36b4ad 100644 --- a/src/user_config.cpp +++ b/src/user_config.cpp @@ -148,7 +148,7 @@ void UserConfig::setDefaults() } // Clear every entry. - memset(inputMap, sizeof(inputMap), 0); + memset(inputMap, 0, sizeof(inputMap)); /* general game input settings */ set(GA_ENTER,