Fixes #129 - Initialize pointer to nullptr.

This commit is contained in:
Michael Cook (mackal) 2014-03-05 01:52:41 -05:00
parent d70c4d7bbe
commit 0e8f62b480

View File

@ -14967,7 +14967,7 @@ void Bot::ProcessBotCommands(Client *c, const Seperator *sep) {
return;
}
Bot* targetedBot;
Bot *targetedBot = nullptr;
if(c->GetTarget() != nullptr) {
if (c->GetTarget()->IsBot() && (c->GetTarget()->CastToBot()->GetBotOwner() == c))