1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-10 11:25:07 -05:00

A little cleanup since previous commit

This commit is contained in:
Loic Blot 2016-10-09 16:31:43 +02:00
parent 70f104be07
commit 1b450861f0

View File

@ -659,10 +659,7 @@ void GenericCAO::initialize(const std::string &data)
if (player && strcmp(player->getName(), m_name.c_str()) == 0) { if (player && strcmp(player->getName(), m_name.c_str()) == 0) {
m_is_local_player = true; m_is_local_player = true;
m_is_visible = false; m_is_visible = false;
LocalPlayer* localplayer = player; player->setCAO(this);
assert( localplayer != NULL );
localplayer->setCAO(this);
} }
m_env->addPlayerName(m_name.c_str()); m_env->addPlayerName(m_name.c_str());
} }