mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-04 06:02:26 +00:00
Fixes #129 - Initialize pointer to nullptr.
This commit is contained in:
parent
d70c4d7bbe
commit
0e8f62b480
@ -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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user