aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2013-09-06 06:49:00 -0700
committerShauren <shauren.trinity@gmail.com>2013-09-06 06:49:00 -0700
commit46ffea86e3f4d7ccf9c402d1b3253e6981fe3f9c (patch)
treeb001781e648811d894971374dc338a1da6533172 /src
parent577c9457e332ea30e3d5500affdea95018af9eae (diff)
parent35ef163703164a8190473ee8eb2ece32a9565045 (diff)
Merge pull request #10729 from xjose93/DebugSendOpcodeFreeze
Core/Commands: Fix .debug send opcode freeze if file dont exists.
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_debug.cpp2
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