mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-10 16:12:25 +00:00
Fixed uninitialised variabled tempBot in #bot stance command (cppcheck)
This commit is contained in:
parent
9a47e79e8e
commit
af1f87a00f
@ -15372,7 +15372,7 @@ void Bot::ProcessBotCommands(Client *c, const Seperator *sep) {
|
|||||||
|
|
||||||
if(!strcasecmp(sep->arg[1], "stance")) {
|
if(!strcasecmp(sep->arg[1], "stance")) {
|
||||||
if(sep->argnum == 3){
|
if(sep->argnum == 3){
|
||||||
Bot* tempBot;
|
Bot* tempBot = NULL;
|
||||||
std::string botName = std::string(sep->arg[2]);
|
std::string botName = std::string(sep->arg[2]);
|
||||||
|
|
||||||
if(!botName.empty())
|
if(!botName.empty())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user