mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 04:42:28 +00:00
Reduce one allocation
This commit is contained in:
parent
62f11d910a
commit
23f7fa49f8
@ -415,8 +415,7 @@ void Mob::SendWearChange(uint8 material_slot, Client *one_client)
|
||||
|
||||
static auto dedupe_key = build_key(*w);
|
||||
auto send_if_changed = [&](Client* client) {
|
||||
uint32_t client_id = client->GetID();
|
||||
auto& last_key = m_last_seen_wearchange[client_id];
|
||||
auto& last_key = m_last_seen_wearchange[client->GetID()];
|
||||
if (last_key == dedupe_key) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user