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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user