[CSM] HUD Fix not updating server HUDs caused by 4f688d5

This commit is contained in:
SmallJoker 2018-01-26 21:27:30 +01:00
parent 4f688d5616
commit 7d3295e21f

@ -2562,7 +2562,7 @@ void Game::handleClientEvent_HandleParticleEvent(ClientEvent *event,
void Game::handleClientEvent_HudAdd(ClientEvent *event, CameraOrientation *cam)
{
LocalPlayer *player = client->getEnv().getLocalPlayer();
auto hud_server_to_client = client->getHUDTranslationMap();
auto &hud_server_to_client = client->getHUDTranslationMap();
u32 server_id = event->hudadd.server_id;
// ignore if we already have a HUD with that ID