mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 05:28:22 +00:00
Fixes #129 - Initialize pointer to nullptr.
This commit is contained in:
+1
-1
@@ -14967,7 +14967,7 @@ void Bot::ProcessBotCommands(Client *c, const Seperator *sep) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bot* targetedBot;
|
Bot *targetedBot = nullptr;
|
||||||
|
|
||||||
if(c->GetTarget() != nullptr) {
|
if(c->GetTarget() != nullptr) {
|
||||||
if (c->GetTarget()->IsBot() && (c->GetTarget()->CastToBot()->GetBotOwner() == c))
|
if (c->GetTarget()->IsBot() && (c->GetTarget()->CastToBot()->GetBotOwner() == c))
|
||||||
|
|||||||
Reference in New Issue
Block a user