game: fix initial selection in material selection screen

This commit is contained in:
Crypto City 2022-07-10 16:27:24 +00:00
parent 3ad7c87975
commit 4df8ef1915

View File

@ -104,6 +104,7 @@ void UISelectMaterial::Init(const GameState *game, const std::shared_ptr<Flag> &
for (const auto &f: e)
if (f.block_variant.variant == variant)
selected.second = f.block_variant.item;
UpdateWidgets();
SetFocus(WIDGET_FOCUS_REASON_UNKNOWN);
}