diff options
author | momacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-11 01:05:36 +0000 |
---|---|---|
committer | momacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-11 01:05:36 +0000 |
commit | 236f91e285fabdc2c79ce66b0c165883a6b2c3f8 (patch) | |
tree | bb359420973944cd25408006afc087148f48f9c0 /src | |
parent | 363a6e4f4f3918cad1c607ed5ecf8cefb75f0423 (diff) | |
download | hercules-236f91e285fabdc2c79ce66b0c165883a6b2c3f8.tar.gz hercules-236f91e285fabdc2c79ce66b0c165883a6b2c3f8.tar.bz2 hercules-236f91e285fabdc2c79ce66b0c165883a6b2c3f8.tar.xz hercules-236f91e285fabdc2c79ce66b0c165883a6b2c3f8.zip |
- Fixed bugreport:6252. Setting variables in script e.g. "set .@var, 08;" wasn't working properly due to octal base conversion issue. Special thanks to Ind and GreenBox.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16907 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 1 |
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; |