We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
autoaim ent
1 parent 518fdf3 commit b439474Copy full SHA for b439474
src/Features/Tas/TasTools/AutoAimTool.cpp
@@ -11,7 +11,7 @@ AutoAimTool autoAimTool[2] = {{0}, {1}};
11
std::shared_ptr<TasToolParams> AutoAimTool::ParseParams(std::vector<std::string> args) {
12
bool usesEntitySelector = args.size() > 0 && args[0] == "ent";
13
14
- if (args.size() < 1 || args.size() > (usesEntitySelector ? 4 : 5)) {
+ if (args.size() < (usesEntitySelector ? 2 : 1) || args.size() > (usesEntitySelector ? 4 : 5)) {
15
throw TasParserException(Utils::ssprintf("Wrong argument count for tool %s: %d", this->GetName(), args.size()));
16
}
17
0 commit comments