From 78430c4bd86412a4b011632135c4eca71a435a1d Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Mon, 3 Feb 2025 15:05:29 +0000 Subject: Fix unable to switch to another character after -D (chooseDefault) is used. Addendum to !89 (and !117) Amusing: putting this line before the .clear() grows the exe by 40 bytes. **** mana/plus!118 --- src/progs/manaplus/client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index d8ba7e1c2..8696499e5 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -1342,6 +1342,7 @@ int Client::gameExec() // Choosing character on the command line should work only // once, clear it so that 'switch character' works. settings.options.character.clear(); + settings.options.chooseDefault = false; BLOCK_END("Client::gameExec State::CHAR_SELECT") break; -- cgit v1.2.3-70-g09d2