forked from townforge/townforge
game: fix initial selection in material selection screen
This commit is contained in:
parent
3ad7c87975
commit
4df8ef1915
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user