summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-10 09:56:19 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-10 09:56:19 +0000
commit0bd3f775424d89eb9fa8998b2ab1298660011a96 (patch)
tree2f7ec5be27f8f208ec78a2cc338d14649ce0eb1d /src
parent9513fe4afbef6e2d290df7075d84582fe3e3edff (diff)
downloadhercules-0bd3f775424d89eb9fa8998b2ab1298660011a96.tar.gz
hercules-0bd3f775424d89eb9fa8998b2ab1298660011a96.tar.bz2
hercules-0bd3f775424d89eb9fa8998b2ab1298660011a96.tar.xz
hercules-0bd3f775424d89eb9fa8998b2ab1298660011a96.zip
* Made script command 'charisalpha' always return 1 when 'isaplha' is true, rather than to return the return value of 'isalpha' which is only defined as zero/non-zero and can be different from 1 (bugreport:2024, related r2003).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14661 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index d6b083fa3..5dd129091 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -12389,7 +12389,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 : 0;
script_pushint(st,val);
return 0;