summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/utils/formatutils.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index d0634bd..e0e2cf6 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -152,7 +152,7 @@ void eclif_authok_post(struct map_session_data *sd)
return;
eclif_send_additional_slots(sd, sd);
- send_pc_info(sd, sd, SELF);
+ send_pc_info(&sd->bl, &sd->bl, SELF);
struct MapdExt *data = mapd_get(sd->bl.m);
int mask = data ? data->mask : 1;
send_mapmask(sd->fd, mask);
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;