u32 Player::addHud(HudElement *toadd) { u32 id = getFreeHudID(); if (id < hud.size()) hud[id] = toadd; else hud.push_back(toadd); return id; }
u32 Player::addHud(HudElement *toadd) { MutexAutoLock lock(m_mutex); u32 id = getFreeHudID(); if (id < hud.size()) hud[id] = toadd; else hud.push_back(toadd); return id; }