summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-05-22 13:54:07 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-05-22 13:54:07 -0700
commit6b85c6ab7fa85c2579ad1fda2e024fa52d0b0d99 (patch)
tree449697b2ae592b5169b04664654077d3fcfe0acb /src
parent69a36c1092c772f05badbab400888712129072ba (diff)
downloadtmwa-6b85c6ab7fa85c2579ad1fda2e024fa52d0b0d99.tar.gz
tmwa-6b85c6ab7fa85c2579ad1fda2e024fa52d0b0d99.tar.bz2
tmwa-6b85c6ab7fa85c2579ad1fda2e024fa52d0b0d99.tar.xz
tmwa-6b85c6ab7fa85c2579ad1fda2e024fa52d0b0d99.zip
Don't crash when creating a new account
Diffstat (limited to 'src')
-rw-r--r--src/login/login.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}
}