summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index f0a0b7f86..a058e8ddc 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -1238,6 +1238,7 @@ const char* parse_simpleexpr(const char *p)
++p;
} else if(ISDIGIT(*p) || ((*p=='-' || *p=='+') && ISDIGIT(p[1]))){
char *np;
+ while(*p == '0' && ISDIGIT(p[1])) p++;
i=strtoul(p,&np,0);
add_scripti(i);
p=np;