summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 14:55:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 20:06:07 +0300
commit9d521a19be347703bfdbb7802d0397a59c3edd7a (patch)
tree9a4e56edc84d5cfd8ebaea17fa19296c51e1e661 /src/gui/windows/charselectdialog.cpp
parent841fe55e67ea467a8e2192dee5c169d282a35148 (diff)
downloadmv-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.gz
mv-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.bz2
mv-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.xz
mv-9d521a19be347703bfdbb7802d0397a59c3edd7a.zip
Add missing checks in windows.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 4981410e5..dd0205347 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -56,16 +56,16 @@
// Character slots per row in the dialog
static const int SLOTS_PER_ROW = 5;
-CharSelectDialog::CharSelectDialog(LoginData *const data) :
+CharSelectDialog::CharSelectDialog(LoginData &data) :
// TRANSLATORS: char select dialog name
Window(strprintf(_("Account %s (last login time %s)"),
- data->username.c_str(), data->lastLogin.c_str()),
+ data.username.c_str(), data.lastLogin.c_str()),
Modal_false,
nullptr,
"char.xml"),
ActionListener(),
KeyListener(),
- mLoginData(data),
+ mLoginData(&data),
// TRANSLATORS: char select dialog. button.
mSwitchLoginButton(new Button(this, _("Switch"), "switch", this)),
// TRANSLATORS: char select dialog. button.