summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
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 2f2faf6dc..8bd4bc028 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]);
}