1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use more unordered_maps to improve performance in c++11 builds

This commit is contained in:
Loic Blot 2016-10-06 08:48:20 +02:00 committed by sfan5
parent 997fc59c7e
commit 667975fe3a
9 changed files with 22 additions and 27 deletions

View file

@ -812,9 +812,7 @@ void Client::handleCommand_StopSound(NetworkPacket* pkt)
*pkt >> server_id;
std::map<s32, int>::iterator i =
m_sounds_server_to_client.find(server_id);
UNORDERED_MAP<s32, int>::iterator i = m_sounds_server_to_client.find(server_id);
if (i != m_sounds_server_to_client.end()) {
int client_id = i->second;
m_sound->stopSound(client_id);