1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Fix some forgotten u16 -> session_t in ad7daf7b52

This commit is contained in:
Loic Blot 2017-09-27 23:48:06 +02:00
parent 0df3671a34
commit 27eeb3581f
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
3 changed files with 32 additions and 32 deletions

View file

@ -606,9 +606,9 @@ ClientInterface::~ClientInterface()
}
}
std::vector<u16> ClientInterface::getClientIDs(ClientState min_state)
std::vector<session_t> ClientInterface::getClientIDs(ClientState min_state)
{
std::vector<u16> reply;
std::vector<session_t> reply;
MutexAutoLock clientslock(m_clients_mutex);
for (const auto &m_client : m_clients) {
@ -642,14 +642,14 @@ void ClientInterface::step(float dtime)
void ClientInterface::UpdatePlayerList()
{
if (m_env) {
std::vector<u16> clients = getClientIDs();
std::vector<session_t> clients = getClientIDs();
m_clients_names.clear();
if(!clients.empty())
if (!clients.empty())
infostream<<"Players:"<<std::endl;
for (u16 i : clients) {
for (session_t i : clients) {
RemotePlayer *player = m_env->getPlayer(i);
if (player == NULL)