diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-08 10:23:24 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-02-08 10:23:24 +0000 |
commit | f29359fcf2aa39215fa25d296b657fc4bc88f834 (patch) | |
tree | c963dfaa831707f0839f220f964712041192092c /src/map/script.c | |
parent | e02735add93bb769c7911976eecac42544f33736 (diff) | |
download | hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.tar.gz hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.tar.bz2 hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.tar.xz hercules-f29359fcf2aa39215fa25d296b657fc4bc88f834.zip |
Fixed wrong message in item group loading code (bugreport:936)
Fixed 'charisalpha' not working for the first char (bugreport:940)
Disabled signed/unsigned warnings for visual studio 2005
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12186 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index e907da19d..87d0d40b0 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11569,7 +11569,7 @@ BUILDIN_FUNC(charisalpha) const char *str=script_getstr(st,2); int pos=script_getnum(st,3); - int val = ( str && pos>0 && (unsigned int)pos<strlen(str) ) ? ISALPHA( str[pos] ) : 0; + int val = ( str && pos >= 0 && (unsigned int)pos < strlen(str) ) ? ISALPHA( str[pos] ) : 0; script_pushint(st,val); return 0; |