From 32260349036f3af44873d13d12bedb3883bb17bf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Jan 2015 16:56:01 +0300 Subject: fix compilation warnings. --- src/map/utils/formatutils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/utils/formatutils.c') diff --git a/src/map/utils/formatutils.c b/src/map/utils/formatutils.c index 0d50c25..6777423 100644 --- a/src/map/utils/formatutils.c +++ b/src/map/utils/formatutils.c @@ -61,7 +61,7 @@ int format_sub(struct script_state* st, int translate) { if (translate == 2) { - char *str = NULL; + const char *str = NULL; char *buf = NULL; if (sd->status.sex) { @@ -77,7 +77,6 @@ int format_sub(struct script_state* st, int translate) strcpy (buf, str); strcat (buf, "#0"); } - ShowWarning("going to translate: %s\n", buf); strcpy(line, lang_pctrans(buf, sd)); aFree (buf); idx = 4; -- cgit v1.2.3-70-g09d2