summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/charhandler.h2
-rw-r--r--src/net/manaserv/charhandler.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/charhandler.h b/src/net/charhandler.h
index c2be5714..25fc3563 100644
--- a/src/net/charhandler.h
+++ b/src/net/charhandler.h
@@ -41,7 +41,7 @@ struct Character
{
Character() :
slot(0),
- dummy(new LocalPlayer)
+ dummy(0)
{
}
diff --git a/src/net/manaserv/charhandler.cpp b/src/net/manaserv/charhandler.cpp
index a4aaf21b..d44c62fe 100644
--- a/src/net/manaserv/charhandler.cpp
+++ b/src/net/manaserv/charhandler.cpp
@@ -361,7 +361,7 @@ void CharHandler::updateCharacters()
Net::Character *character = new Net::Character;
character->slot = info.slot;
- LocalPlayer *player = character->dummy;
+ LocalPlayer *player = character->dummy = new LocalPlayer;
player->setName(info.name);
player->setGender(info.gender);
player->setSprite(SPRITE_HAIR, info.hairStyle * -1,