allow one less arg in bind

This commit is contained in:
vaxerski 2022-10-03 21:01:08 +01:00
parent 49ab3890aa
commit ab82c4806d

View file

@ -639,7 +639,7 @@ void CConfigManager::handleBind(const std::string& command, const std::string& v
const auto ARGS = CVarList(value, 4); const auto ARGS = CVarList(value, 4);
if ((ARGS.size() < 4 && !mouse) || (ARGS.size() < 3 && mouse)) { if ((ARGS.size() < 3 && !mouse) || (ARGS.size() < 3 && mouse)) {
parseError = "bind: too few args"; parseError = "bind: too few args";
return; return;
} else if ((ARGS.size() > 4 && !mouse) || (ARGS.size() > 3 && mouse)) { } else if ((ARGS.size() > 4 && !mouse) || (ARGS.size() > 3 && mouse)) {