Infinity loop in sendopcode command

This commit is contained in:
tomrus88 2008-10-29 20:15:35 +03:00
parent e92cc728c3
commit 871d34b106

View file

@ -146,6 +146,9 @@ bool ChatHandler::HandleSendOpcodeCommand(const char* args)
std::string type;
ifs >> type;
if(type == "")
break;
if(type == "uint8")
{
uint16 val1;
@ -189,6 +192,7 @@ bool ChatHandler::HandleSendOpcodeCommand(const char* args)
else
{
sLog.outDebug("Sending opcode: unknown type %s", type.c_str());
break;
}
}
ifs.close();