From ed23cac0a89a552f82225dc5c8c702850892a46d Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 15 Aug 2006 23:30:48 +0000 Subject: - Applied multiple fixes which should take care of making homun save/load work on TXT now. - Added Gatling Fever's batk bonus. - Some cleaning in status_damage which should prevent trying to free already free'd pointers when unit_remove_map invokes unit_free (when status_damage was going to invoke unit_free anyway) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8308 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/intif.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/intif.c') diff --git a/src/map/intif.c b/src/map/intif.c index ef0833b71..7183533db 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -821,12 +821,12 @@ int intif_homunculus_requestsave(int account_id, struct s_homunculus* sh) { if (CheckForCharServer()) return 0; - WFIFOHEAD(inter_fd, sizeof(struct s_homunculus)+10); + WFIFOHEAD(inter_fd, sizeof(struct s_homunculus)+8); WFIFOW(inter_fd,0) = 0x3092; - WFIFOL(inter_fd,2) = sizeof(struct s_homunculus)+10; - WFIFOL(inter_fd,6) = account_id; - memcpy(WFIFOP(inter_fd,10),sh,sizeof(struct s_homunculus)); - WFIFOSET(inter_fd, sizeof(struct s_homunculus)+10); + WFIFOW(inter_fd,2) = sizeof(struct s_homunculus)+8; + WFIFOL(inter_fd,4) = account_id; + memcpy(WFIFOP(inter_fd,8),sh,sizeof(struct s_homunculus)); + WFIFOSET(inter_fd, WFIFOW(inter_fd,2)); return 0; } -- cgit v1.2.3-60-g2f50