summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 5a276e306..4a00283ee 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -270,9 +270,7 @@ Client::Client(
Add local player
*/
{
- Player *player = new LocalPlayer(this);
-
- player->updateName(playername);
+ Player *player = new LocalPlayer(this, playername);
m_env.addPlayer(player);
}