diff options
Diffstat (limited to 'src/account-server/accountclient.cpp')
-rw-r--r-- | src/account-server/accountclient.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/account-server/accountclient.cpp b/src/account-server/accountclient.cpp index 79d3cf0c..8be44289 100644 --- a/src/account-server/accountclient.cpp +++ b/src/account-server/accountclient.cpp @@ -21,9 +21,11 @@ * $Id$ */ -#include "account-server/account.hpp" #include "account-server/accountclient.hpp" + +#include "account-server/account.hpp" #include "account-server/accounthandler.hpp" +#include "account-server/characterdata.hpp" AccountClient::AccountClient(ENetPeer *peer): NetComputer(peer), @@ -44,7 +46,7 @@ void AccountClient::setAccount(AccountPtr acc) mAccountPtr = acc; } -void AccountClient::setCharacter(PlayerPtr ch) +void AccountClient::setCharacter(CharacterPtr ch) { unsetCharacter(); mCharacterPtr = ch; @@ -59,5 +61,5 @@ void AccountClient::unsetAccount() void AccountClient::unsetCharacter() { if (mCharacterPtr.get() == NULL) return; - mCharacterPtr = PlayerPtr(NULL); + mCharacterPtr = CharacterPtr(NULL); } |