From 6b85c6ab7fa85c2579ad1fda2e024fa52d0b0d99 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 22 May 2013 13:54:07 -0700 Subject: Don't crash when creating a new account --- src/login/login.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/login/login.cpp') diff --git a/src/login/login.cpp b/src/login/login.cpp index 1d05d49..8d526f6 100644 --- a/src/login/login.cpp +++ b/src/login/login.cpp @@ -978,6 +978,7 @@ int mmo_auth(struct mmo_account *account, int fd) LOGIN_LOG("Account creation and authentification accepted (account %s (id: %d), sex: %c, connection with _F/_M, ip: %s)\n", account->userid, new_id, account->userid[len + 1], ip); + ad = &auth_data.back(); } } -- cgit v1.2.3-60-g2f50