diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-11 01:00:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-11 01:00:25 +0300 |
commit | 437f83655d4abe688743978e35a68524684e03a0 (patch) | |
tree | e83491896be724cb7db1e34e1188e2599bdfc3ff | |
parent | 1aba90595c3bc5b39186a2352971127ca715bd9e (diff) | |
download | evol-hercules-437f83655d4abe688743978e35a68524684e03a0.tar.gz evol-hercules-437f83655d4abe688743978e35a68524684e03a0.tar.bz2 evol-hercules-437f83655d4abe688743978e35a68524684e03a0.tar.xz evol-hercules-437f83655d4abe688743978e35a68524684e03a0.zip |
Fix compilation with gcc 4.9 and older.
-rw-r--r-- | src/map/clif.c | 5 |
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 ++; |