mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +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;
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue