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