We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code at line 14970 in bot.cpp looks as follows:
Bot* targetedBot; if(c->GetTarget() != nullptr) { if (c->GetTarget()->IsBot() && (c->GetTarget()->CastToBot()->GetBotOwner() == c)) targetedBot = c->GetTarget()->CastToBot(); else c->Message(13, "You must target a bot that you own."); if(targetedBot) {
It's possible that the targetedBot pointer is used uninitialized by the if() statement on line 14978, which can subsequently lead to a crash.
To fix, I suggest line 14970 to be changed to either:
Bot* targetedBot = nullptr;
or
Bot* targetedBot = 0;
The text was updated successfully, but these errors were encountered:
0e8f62b
No branches or pull requests
Code at line 14970 in bot.cpp looks as follows:
It's possible that the targetedBot pointer is used uninitialized by the if() statement on line 14978, which can subsequently lead to a crash.
To fix, I suggest line 14970 to be changed to either:
or
The text was updated successfully, but these errors were encountered: