diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c index 9721f12d0..401653fdc 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -723,10 +723,10 @@ const char* parse_simpleexpr(const char *p) } else if(*p=='"'){ add_scriptc(C_STR); p++; - while(*p && *p!='"'){ - if(p[-1]<=0x7e && *p=='\\') + while( *p && *p != '"' ){ + if( (unsigned char)p[-1] <= 0x7e && *p == '\\' ) p++; - else if(*p=='\n') + else if( *p == '\n' ) disp_error_message("parse_simpleexpr: unexpected newline @ string",p); add_scriptb(*p++); } |