diff --git a/src/map/clif.cpp b/src/map/clif.cpp index ff99e1b547..8e1e4ee693 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -21150,7 +21150,7 @@ void clif_hat_effects( map_session_data& sd, block_list& bl, enum send_target ta for( size_t i = 0; i < tsd->hatEffects.size(); i++ ){ p->effects[i] = tsd->hatEffects[i]; - p->packetLength += static_castpacketLength)>( p->effects[0] ); + p->packetLength += static_castpacketLength)>( sizeof( p->effects[0] ) ); } clif_send( p, p->packetLength, tbl, target ); @@ -21168,7 +21168,7 @@ void clif_hat_effect_single( map_session_data& sd, uint16 effectId, bool enable p->aid = sd.bl.id; p->status = enable; p->effects[0] = effectId; - p->packetLength += static_castpacketLength)>( p->effects[0] ); + p->packetLength += static_castpacketLength)>( sizeof( p->effects[0] ) ); clif_send( p, p->packetLength, &sd.bl, AREA ); #endif