Core/Commands: Fix .debug send opcode freeze if file dont exists.
This commit is contained in:
@@ -264,7 +264,7 @@ public:
|
||||
unit = player;
|
||||
|
||||
std::ifstream ifs("opcode.txt");
|
||||
if (ifs.bad())
|
||||
if (ifs.fail())
|
||||
return false;
|
||||
|
||||
// remove comments from file
|
||||
|
||||
Reference in New Issue
Block a user