diff options
author | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-08 13:20:49 +0000 |
---|---|---|
committer | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-08 13:20:49 +0000 |
commit | 89624356dcf2f846fe66e5d05d3c5d63a88cca37 (patch) | |
tree | 82b7680666485a7721a165573e736f46cec2c83d /src/map/script.c | |
parent | e1054721722ff4fdc0bded9dff6f0ff937f357d7 (diff) | |
download | hercules-89624356dcf2f846fe66e5d05d3c5d63a88cca37.tar.gz hercules-89624356dcf2f846fe66e5d05d3c5d63a88cca37.tar.bz2 hercules-89624356dcf2f846fe66e5d05d3c5d63a88cca37.tar.xz hercules-89624356dcf2f846fe66e5d05d3c5d63a88cca37.zip |
Fixed replacestr
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16608 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
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; |