From c538f6372d9068140231749b0225a6a355009074 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Thu, 26 Aug 2010 17:54:16 +0200 Subject: Fixing segmentation fault when creating a new account This resolves http://bugs.manasource.org/view.php?id=171 Reviewed-by: Bertram. --- src/net/manaserv/loginhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/manaserv') 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 -- cgit v1.2.3-70-g09d2