summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-28 17:33:37 +0100
committerAndrei Karas <akaras@inbox.ru>2012-01-28 21:07:11 +0300
commitf39dacdb53cd7013eb5c39bdaf099777b581bc8a (patch)
tree76d1976e07208b934cf96beb5f2e2e1ecda3f317 /src
parenta93722a53e2d50466dfd5512c4a6a1c3dfc60fb1 (diff)
downloadmanaplus-f39dacdb53cd7013eb5c39bdaf099777b581bc8a.tar.gz
manaplus-f39dacdb53cd7013eb5c39bdaf099777b581bc8a.tar.bz2
manaplus-f39dacdb53cd7013eb5c39bdaf099777b581bc8a.tar.xz
manaplus-f39dacdb53cd7013eb5c39bdaf099777b581bc8a.zip
Make command line choose character only work once
Previously it was interfering with the 'switch character' functionality. Reviewed-by: Erik Schilling
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index c51dffa9e..017bcadb4 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1232,6 +1232,10 @@ int Client::gameExec()
CharSelectDialog::Focus);
}
+ // Choosing character on the command line should work only
+ // once, clear it so that 'switch character' works.
+ mOptions.character.clear();
+
break;
case STATE_CONNECT_GAME: