Fixed bugreport:6428 Fixed behavior issues with script commands replacestr and countstr. Special Thanks to QQfoolsorellina for the extra information
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16764 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
497e96f04d
commit
2386f0136b
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user