Core/Commands: Fix .debug send opcode freeze if file dont exists.
This commit is contained in:
1 parent
577c9457e3
commit
35ef163703
1 file changed
+1
-1
@@ -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