summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7ee0be057..be9adeae6 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;