summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-12-31 03:48:02 -0200
committershennetsind <ind@henn.et>2013-12-31 03:48:02 -0200
commit85327cde8e451b8b1bacd1f5a98c034a6f42e5ea (patch)
tree65e07ff554e67e42c0178f8ffc115c04afbc7a21 /src/map/script.c
parente153b614bd6c3cfb85528ce847fdcb353fe31020 (diff)
downloadhercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.tar.gz
hercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.tar.bz2
hercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.tar.xz
hercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.zip
Fixed issues pointed out in Report 7909
Special Thanks to Vader. http://hercules.ws/board/tracker/issue-7909-some-code-errors-and-optimisations/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a9ad69954..20485d880 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -910,7 +910,7 @@ const char* parse_variable(const char* p) {
const char *var = p;
if( ( p[0] == '+' && p[1] == '+' && (type = C_ADD_PRE) ) // pre ++
- || ( p[1] == '-' && p[1] == '-' && (type = C_SUB_PRE) ) // pre --
+ || ( p[0] == '-' && p[1] == '-' && (type = C_SUB_PRE) ) // pre --
) {
var = p = script->skip_space(&p[2]);
}