1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-19 05:15:47 +01:00

C++03 oldify in various source files

This commit is contained in:
SmallJoker
2018-05-18 11:10:53 +02:00
parent 695d02e6bd
commit 263400b3d8
6 changed files with 38 additions and 26 deletions

View File

@@ -1660,8 +1660,10 @@ void Server::SendChatMessage(u16 peer_id, const std::wstring &message)
Send(&pkt);
} else {
for (u16 id : m_clients.getClientIDs())
SendChatMessage(id, message);
std::vector<u16> clients = m_clients.getClientIDs();
for (std::vector<u16>::iterator it = clients.begin();
it != clients.end(); ++it)
SendChatMessage(*it, message);
}
}