Fixed replacestr
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16608 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
89917d2150
commit
cdcc95a0a4
@ -13945,7 +13945,7 @@ BUILDIN_FUNC(replacestr)
|
|||||||
|
|
||||||
if(script_hasdata(st, 6)) {
|
if(script_hasdata(st, 6)) {
|
||||||
count = script_getnum(st, 6);
|
count = script_getnum(st, 6);
|
||||||
if(!count) {
|
if(count == 0) {
|
||||||
ShowError("script:replacestr: Invalid count value. Expected int got string\n");
|
ShowError("script:replacestr: Invalid count value. Expected int got string\n");
|
||||||
st->state = END;
|
st->state = END;
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user