diff options
-rw-r--r-- | src/map/script.c | 4 |
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"); |