summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-16 03:12:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-16 03:12:22 +0000
commit44a3fb6000736374fbad13159f5a955151f039e9 (patch)
tree4fd9e4eac42d41855b767615f720dca03a000749 /src
parente71b9760374db9f0958dc8b9861d5f20d1d626a7 (diff)
downloadhercules-44a3fb6000736374fbad13159f5a955151f039e9.tar.gz
hercules-44a3fb6000736374fbad13159f5a955151f039e9.tar.bz2
hercules-44a3fb6000736374fbad13159f5a955151f039e9.tar.xz
hercules-44a3fb6000736374fbad13159f5a955151f039e9.zip
- Fixed crash in chrif_load_scdata warning message.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5293 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/chrif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index c1d127a44..52cb3ef05 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1224,7 +1224,7 @@ int chrif_load_scdata(int fd)
memcpy(&data, RFIFOP(fd,14 + i*sizeof(struct status_change_data)), sizeof(struct status_change_data));
if (data.tick < 1)
{ //Protection against invalid tick values. [Skotlex]
- ShowWarning("chrif_load_scdata: Received invalid duration (%d ms) for status change %d (character %s)\n", data.tick, sd->status.name);
+ ShowWarning("chrif_load_scdata: Received invalid duration (%d ms) for status change %d (character %s)\n", data.tick, data.type, sd->status.name);
continue;
}
status_change_start(&sd->bl, data.type, 100, data.val1, data.val2, data.val3, data.val4, data.tick, 15);