From e591d5b6d891516476aaf12808f4d3b3506e5f92 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 5 Oct 2013 18:28:39 -0700 Subject: Remove direct packet buffer item assignments (not clones) --- src/map/clif.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 8287b18..45c9c13 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -3908,9 +3908,10 @@ void clif_parse_Emotion(int fd, dumb_ptr sd) if (battle_config.basic_skill_check == 0 || pc_checkskill(sd, SkillID::NV_EMOTE) >= 1) { + uint8_t emote = RFIFOB(fd, 2); WBUFW(buf, 0) = 0xc0; WBUFL(buf, 2) = sd->bl_id; - WBUFB(buf, 6) = RFIFOB(fd, 2); + WBUFB(buf, 6) = emote; clif_send(buf, clif_parse_func_table[0xc0].len, sd, SendWho::AREA); } else -- cgit v1.2.3-70-g09d2