Skip to content

Commit

Permalink
A little cleanup since previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Oct 9, 2016
1 parent 70f104b commit 1b45086
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/content_cao.cpp
Expand Up @@ -659,10 +659,7 @@ void GenericCAO::initialize(const std::string &data)
if (player && strcmp(player->getName(), m_name.c_str()) == 0) {
m_is_local_player = true;
m_is_visible = false;
LocalPlayer* localplayer = player;

assert( localplayer != NULL );
localplayer->setCAO(this);
player->setCAO(this);
}
m_env->addPlayerName(m_name.c_str());
}
Expand Down

0 comments on commit 1b45086

Please sign in to comment.