summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-05 19:00:18 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-05 19:00:18 +0000
commit23f4078f470deaf16cbadf73efd924c032680da2 (patch)
tree3d7556dceb0e595040b9e3998927a864a7e8f5af
parentab3985192f6c46bcfabe712b467b24618c25d257 (diff)
downloadhercules-23f4078f470deaf16cbadf73efd924c032680da2.tar.gz
hercules-23f4078f470deaf16cbadf73efd924c032680da2.tar.bz2
hercules-23f4078f470deaf16cbadf73efd924c032680da2.tar.xz
hercules-23f4078f470deaf16cbadf73efd924c032680da2.zip
- Fixed a crash on equip/unequip items with autoscripts.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13849 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 01e683ea0..a25014707 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1451,9 +1451,9 @@ void pc_autoscript_clear(struct map_session_data *sd)
for (i = 0; i < MAX_PC_BONUS && sd->autoscript3[i].script; i++)
script_free_code(sd->autoscript3[i].script);
- memset(&sd->autoscript, 0, sizeof(struct s_autoscript));
- memset(&sd->autoscript2, 0, sizeof(struct s_autoscript));
- memset(&sd->autoscript3, 0, sizeof(struct s_autoscript));
+ memset(&sd->autoscript, 0, sizeof(sd->autoscript));
+ memset(&sd->autoscript2, 0, sizeof(sd->autoscript2));
+ memset(&sd->autoscript3, 0, sizeof(sd->autoscript3));
}
static int pc_bonus_autospell_del(struct s_autospell* spell, int max, short id, short lv, short rate, short card_id)