Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/lua/endpoints/start.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,18 @@ return {
if deck_data.name == deck_name then
sendDebugMessage("Setting deck to: " .. deck_data.name .. " (from enum: " .. args.deck .. ")", "BB.ENDPOINTS")
G.GAME.selected_back:change_to(deck_data)
G.GAME.viewed_back:change_to(deck_data)
-- Steamodded's reworked run select (smods#1560/#1571, Sept 2026) no
-- longer creates G.GAME.viewed_back on the setup_run path, so it is
-- nil here and indexing it aborts start() with:
-- attempt to index field 'viewed_back' (a nil value)
-- Recreate it when missing; it only backs the deck-preview graphic.
-- Upstream report: https://github.com/coder/balatrobot/issues/244
if not G.GAME.viewed_back and Back then
G.GAME.viewed_back = Back(deck_data)
end
if G.GAME.viewed_back then
G.GAME.viewed_back:change_to(deck_data)
end
deck_found = true
break
end
Expand Down
Loading