From 871d34b106a3f04aec38803a58512c3d2a0205ce Mon Sep 17 00:00:00 2001 From: tomrus88 Date: Wed, 29 Oct 2008 20:15:35 +0300 Subject: [PATCH] Infinity loop in sendopcode command --- src/game/debugcmds.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/debugcmds.cpp b/src/game/debugcmds.cpp index 02f883d20..2132e2641 100644 --- a/src/game/debugcmds.cpp +++ b/src/game/debugcmds.cpp @@ -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();