summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/clif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 84f8332..127cd16 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -146,16 +146,17 @@ void eclif_charnameack(int *fdPtr, struct block_list *bl)
char tmpBuf[25];
char *ptr = tmpBuf;
+ int f;
memcpy(tmpBuf, md->name, 24);
tmpBuf[24] = 0;
- for (int f = 23; f > 1; f --)
+ for (f = 23; f > 1; f --)
{
if (tmpBuf[f] == ' ')
tmpBuf[f] = 0;
else
break;
}
- for (int f = 0; f < 24; f ++)
+ for (f = 0; f < 24; f ++)
{
if (*ptr == ' ')
ptr ++;