diff options
author | xjose93 <xjose93@hotmail.com> | 2013-09-06 15:31:22 +0200 |
---|---|---|
committer | xjose93 <xjose93@hotmail.com> | 2013-09-06 15:31:22 +0200 |
commit | 35ef163703164a8190473ee8eb2ece32a9565045 (patch) | |
tree | b001781e648811d894971374dc338a1da6533172 /src | |
parent | 577c9457e332ea30e3d5500affdea95018af9eae (diff) |
Core/Commands: Fix .debug send opcode freeze if file dont exists.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index df80ba3c797..c13e9d08172 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -264,7 +264,7 @@ public: unit = player; std::ifstream ifs("opcode.txt"); - if (ifs.bad()) + if (ifs.fail()) return false; // remove comments from file |