From 1b450861f01eef98c7d4f7810724d6bec7423a7c Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sun, 9 Oct 2016 16:31:43 +0200 Subject: [PATCH] A little cleanup since previous commit --- src/content_cao.cpp | 5 +---- 1 file changed, 1 insertion(+), 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()); }