Fixed the compile errors on packet versions < 20150513
@@ -1269,8 +1269,10 @@ bool pc_authok(struct map_session_data *sd, uint32 login_id2, time_t expiration_
sd->bonus_script.head = NULL;
sd->bonus_script.count = 0;
+#if PACKETVER >= 20150513
sd->hatEffectIDs = NULL;
sd->hatEffectCount = 0;
+#endif
// Check EXP overflow, since in previous revision EXP on Max Level can be more than 'official' Max EXP
if (pc_is_maxbaselv(sd) && sd->status.base_exp > MAX_LEVEL_BASE_EXP) {
@@ -3211,11 +3211,13 @@ int unit_free(struct block_list *bl, clr_type clrtype)
}
sd->qi_count = 0;
if( sd->hatEffectCount > 0 ){
aFree(sd->hatEffectIDs);
// Clearing...
if (sd->bonus_script.head)