diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index e00597dcff3..9814e89ec96 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2038,7 +2038,7 @@ std::optional CConfigManager::handleAnimation(const std::string& co return "no such animation"; // This helper casts strings like "1", "true", "off", "yes"... to int. - int64_t enabledInt = configStringToInt(ARGS[1]).value_or(0); + int64_t enabledInt = configStringToInt(ARGS[1]).value_or(0) == 1; // Checking that the int is 1 or 0 because the helper can return integers out of range. if (enabledInt != 0 && enabledInt != 1)