From 0e8f62b48068b1a9e5d60a201cfde6d6446f82d2 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Wed, 5 Mar 2014 01:52:41 -0500 Subject: [PATCH] Fixes #129 - Initialize pointer to nullptr. --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 2b9580452..1ec736ecf 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -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))