diff --git a/src/map/script.c b/src/map/script.c index 7ee0be057d..be9adeae64 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13945,7 +13945,7 @@ BUILDIN_FUNC(replacestr) if(script_hasdata(st, 6)) { count = script_getnum(st, 6); - if(!count) { + if(count == 0) { ShowError("script:replacestr: Invalid count value. Expected int got string\n"); st->state = END; return 1;