mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
Infinity loop in sendopcode command
This commit is contained in:
parent
e92cc728c3
commit
871d34b106
1 changed files with 4 additions and 0 deletions
|
|
@ -146,6 +146,9 @@ bool ChatHandler::HandleSendOpcodeCommand(const char* args)
|
||||||
std::string type;
|
std::string type;
|
||||||
ifs >> type;
|
ifs >> type;
|
||||||
|
|
||||||
|
if(type == "")
|
||||||
|
break;
|
||||||
|
|
||||||
if(type == "uint8")
|
if(type == "uint8")
|
||||||
{
|
{
|
||||||
uint16 val1;
|
uint16 val1;
|
||||||
|
|
@ -189,6 +192,7 @@ bool ChatHandler::HandleSendOpcodeCommand(const char* args)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sLog.outDebug("Sending opcode: unknown type %s", type.c_str());
|
sLog.outDebug("Sending opcode: unknown type %s", type.c_str());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ifs.close();
|
ifs.close();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue