The crash says Bunco.lua"]:1643: attempt to index a nil value.
It happens because when the deck is empty, the combination{} table can't be filled at line 1643, since there's no cards in deck to fill it.
It can be fixed by adding and #G.deck.cards ~= 0 to the if statement at line 1632 of Bunco.lua, like so:
However, with this workaround, when the deck is empty, the plate isn't updated at the end of Round.
The crash says
Bunco.lua"]:1643: attempt to index a nil value
. It happens because when the deck is empty, the combination{} table can't be filled at line 1643, since there's no cards in deck to fill it. It can be fixed by addingand #G.deck.cards ~= 0
to theif
statement at line 1632 of Bunco.lua, like so:However, with this workaround, when the deck is empty, the plate isn't updated at the end of Round.