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
1 changed files with 1 additions and 4 deletions

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());
} }