Fixed uninitialised variabled tempBot in #bot stance command (cppcheck)

This commit is contained in:
Derision 2013-03-03 22:26:57 +00:00
parent 9a47e79e8e
commit af1f87a00f

View File

@ -15372,7 +15372,7 @@ void Bot::ProcessBotCommands(Client *c, const Seperator *sep) {
if(!strcasecmp(sep->arg[1], "stance")) {
if(sep->argnum == 3){
Bot* tempBot;
Bot* tempBot = NULL;
std::string botName = std::string(sep->arg[2]);
if(!botName.empty())