Skip to content
Permalink
Browse files

Follow up to 6748ff7

* Fixed pre-increment and pre-decrement operators for achievement condition parsing.
Thanks to @Lemongrass3110!
  • Loading branch information...
aleos89 committed Jul 31, 2017
1 parent f4338ad commit c0556a397e864f8a73dce6f2ff32bb367443e18b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/map/achievement.c
@@ -879,8 +879,8 @@ const char* av_parse_subexpr(const char* p, int limit, struct av_condition *pare
p = skip_space(p);

while((
(op=C_ADD,opl=9,len=1,*p=='+') ||
(op=C_SUB,opl=9,len=1,*p=='-') ||
((op=C_ADD,opl=9,len=1,*p=='+') && p[1]!='+') ||
((op=C_SUB,opl=9,len=1,*p=='-') && p[1]!='-') ||
(op=C_MUL,opl=10,len=1,*p=='*') ||
(op=C_DIV,opl=10,len=1,*p=='/') ||
(op=C_MOD,opl=10,len=1,*p=='%') ||

0 comments on commit c0556a3

Please sign in to comment.
You can’t perform that action at this time.