diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-03 23:28:45 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-03 23:35:24 +0200 |
commit | 076bcc1f8361c705d7dbe9088b18cca7d7fe21de (patch) | |
tree | 4c80fe2a407c71c228755a7f2a1283ace4c60ae9 /src/main.cpp | |
parent | de3fc40ec9ddffdf0546b06e53fd8daf48e76d61 (diff) | |
download | mana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.tar.gz mana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.tar.bz2 mana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.tar.xz mana-076bcc1f8361c705d7dbe9088b18cca7d7fe21de.zip |
Made passing character name on the command line work again
It was only selecting it when found, instead of also logging in with the
character.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3194bf09..2a76f759 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1120,8 +1120,7 @@ int main(int argc, char *argv[]) if (((CharSelectDialog*) currentDialog)-> selectByName(options.character)) { - ((CharSelectDialog*) currentDialog)->action( - gcn::ActionEvent(NULL, "ok")); + ((CharSelectDialog*) currentDialog)->chooseSelected(); } else { ((CharSelectDialog*) currentDialog)->selectByName( config.getValue("lastCharacter", "")); |