mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Core/Commands): debug send opcode (#2344)
This commit is contained in:
@@ -250,8 +250,12 @@ public:
|
||||
unit = player;
|
||||
|
||||
std::ifstream ifs("opcode.txt");
|
||||
if (ifs.bad())
|
||||
if (!ifs.is_open())
|
||||
{
|
||||
handler->SendSysMessage(LANG_DEBUG_OPCODE_FILE_MISSING);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
// remove comments from file
|
||||
std::stringstream parsedStream;
|
||||
|
||||
Reference in New Issue
Block a user