summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorIbrahem Zidan <brahem@aotsw.com>2020-06-01 18:38:10 +0200
committerGitHub <noreply@github.com>2020-06-01 18:38:10 +0200
commit48da9b67cf05664750313b86d656652b5ed8c5ed (patch)
treeaaeb59cf90da1a531f47977997c13afad1b4e0e2 /src/map/script.c
parent380eba3b364b915cff8b34a343d482454a0bccc0 (diff)
parent677c78b6b73ffe0cf49eb1b435a11dc7149ebb6a (diff)
downloadhercules-48da9b67cf05664750313b86d656652b5ed8c5ed.tar.gz
hercules-48da9b67cf05664750313b86d656652b5ed8c5ed.tar.bz2
hercules-48da9b67cf05664750313b86d656652b5ed8c5ed.tar.xz
hercules-48da9b67cf05664750313b86d656652b5ed8c5ed.zip
Merge pull request #2759 from HerculesWS/fix-errors
Fix errors in the ci builds
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 682e665b6..743a1779a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -3692,8 +3692,8 @@ static int set_reg(struct script_state *st, struct map_session_data *sd, int64 n
const char *str = (const char*)value;
if (script->is_permanent_variable(name) && strlen(str) > SCRIPT_STRING_VAR_LENGTH) {
- ShowError("script:set_reg: Value of variable %s is too long: %lu! Maximum is %d. Skipping...\n",
- name, strlen(str), SCRIPT_STRING_VAR_LENGTH);
+ ShowError("script:set_reg: Value of variable %s is too long: %d! Maximum is %d. Skipping...\n",
+ name, (int)strlen(str), SCRIPT_STRING_VAR_LENGTH);
if (st != NULL) {
script->reportsrc(st);