aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-09 16:31:43 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2016-10-09 16:31:43 +0200
commit1b450861f01eef98c7d4f7810724d6bec7423a7c (patch)
treec2fa90bba8e6684c7025c462da69289ceb581121 /src
parent70f104be076321330a0827010704761a040d8ec7 (diff)
downloadminetest-1b450861f01eef98c7d4f7810724d6bec7423a7c.tar.gz
minetest-1b450861f01eef98c7d4f7810724d6bec7423a7c.tar.bz2
minetest-1b450861f01eef98c7d4f7810724d6bec7423a7c.zip
A little cleanup since previous commit
Diffstat (limited to 'src')
-rw-r--r--src/content_cao.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 00e17f328..a8e03d670 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -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());
}