summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-08-26 17:54:16 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-08-26 18:11:46 +0200
commitc538f6372d9068140231749b0225a6a355009074 (patch)
treef3631a48523f1d7415567c6daec0999121cbd877 /src
parent627e1271f0ac2e7bd95a83f521ecbcf1b554ba80 (diff)
downloadmana-c538f6372d9068140231749b0225a6a355009074.tar.gz
mana-c538f6372d9068140231749b0225a6a355009074.tar.bz2
mana-c538f6372d9068140231749b0225a6a355009074.tar.xz
mana-c538f6372d9068140231749b0225a6a355009074.zip
Fixing segmentation fault when creating a new account
This resolves http://bugs.manasource.org/view.php?id=171 Reviewed-by: Bertram.
Diffstat (limited to 'src')
-rw-r--r--src/net/manaserv/loginhandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp
index cb25f584..61671824 100644
--- a/src/net/manaserv/loginhandler.cpp
+++ b/src/net/manaserv/loginhandler.cpp
@@ -425,6 +425,8 @@ void LoginHandler::chooseServer(unsigned int server)
void LoginHandler::registerAccount(LoginData *loginData)
{
+ mLoginData = loginData;
+
MessageOut msg(PAMSG_REGISTER);
msg.writeInt32(0); // client version