summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordastgir <dastgirpojee@rocketmail.com>2014-10-15 09:54:27 -0400
committerdastgir <dastgirpojee@rocketmail.com>2014-10-15 09:54:27 -0400
commit6c8bafc1b0c191084a1a2aa1dc3ddcc89c928707 (patch)
tree6ed8188c28a2668f14c71ca88d33e7d9926e0dad
parentdc566e99ff2a33c1d2066f09e0044ba3de8bc803 (diff)
downloadhercules-6c8bafc1b0c191084a1a2aa1dc3ddcc89c928707.tar.gz
hercules-6c8bafc1b0c191084a1a2aa1dc3ddcc89c928707.tar.bz2
hercules-6c8bafc1b0c191084a1a2aa1dc3ddcc89c928707.tar.xz
hercules-6c8bafc1b0c191084a1a2aa1dc3ddcc89c928707.zip
Fixes some typo on replacestr.
(Bug:8396)
-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 f776b1b63..e70c2e10a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -14499,7 +14499,7 @@ BUILDIN(replacestr)
}
if(script_hasdata(st, 6)) {
- if (!script_isinttype(st, 5) || (count = script_getnum(st, 6) == 0)) {
+ if (!script_isinttype(st, 6) || (count = script_getnum(st, 6)) == 0) {
ShowError("script:replacestr: Invalid count value. Expected int.\n");
st->state = END;
return false;