summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-08 18:30:11 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-08 18:30:11 +0000
commitf7f08f6551b94f5e9e1ce907fca6ed132ac814c7 (patch)
treed191909dcfd29e34c029bfcf295e5e768ec1fa63 /src/map/script.c
parent09c1b74588b24ba0fd53b2f2727ffcc75a452713 (diff)
downloadhercules-f7f08f6551b94f5e9e1ce907fca6ed132ac814c7.tar.gz
hercules-f7f08f6551b94f5e9e1ce907fca6ed132ac814c7.tar.bz2
hercules-f7f08f6551b94f5e9e1ce907fca6ed132ac814c7.tar.xz
hercules-f7f08f6551b94f5e9e1ce907fca6ed132ac814c7.zip
Fixed bugreport:6428 Fixed behavior issues with script commands replacestr and countstr. Special Thanks to QQfoolsorellina for the extra information
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16764 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 51c795a7c..c829df26e 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13970,7 +13970,7 @@ BUILDIN_FUNC(replacestr)
}
if(script_hasdata(st, 5)) {
- if(script_isint(st,5))
+ if( !script_isstring(st,5) )
usecase = script_getnum(st, 5) != 0;
else {
ShowError("script:replacestr: Invalid usecase value. Expected int got string\n");
@@ -14051,7 +14051,7 @@ BUILDIN_FUNC(countstr)
}
if(script_hasdata(st, 4)) {
- if(script_isint(st,4))
+ if( !script_isstring(st,4) )
usecase = script_getnum(st, 4) != 0;
else {
ShowError("script:countstr: Invalid usecase value. Expected int got string\n");