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();