summaryrefslogtreecommitdiff
path: root/src/game-server/accountconnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/accountconnection.cpp')
-rw-r--r--src/game-server/accountconnection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/accountconnection.cpp b/src/game-server/accountconnection.cpp
index 622fc1d6..72f87763 100644
--- a/src/game-server/accountconnection.cpp
+++ b/src/game-server/accountconnection.cpp
@@ -155,7 +155,8 @@ void AccountConnection::processMessage(MessageIn &msg)
case AGMSG_PLAYER_ENTER:
{
std::string token = msg.readString(MAGIC_TOKEN_LENGTH);
- Entity *character = new Actor(OBJECT_CHARACTER);
+ Entity *character = new Entity(OBJECT_CHARACTER);
+ character->addComponent(new ActorComponent(*character));
character->addComponent(new BeingComponent(*character));
character->addComponent(new CharacterComponent(*character, msg));
gameHandler->addPendingCharacter(token, character);