Skip to content

Commit 196fc98

Browse files
committed
Pigs2: Something weird is happening with the render partway through the game
1 parent 06218c0 commit 196fc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/games/pigs2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ export class Pigs2Game extends GameBaseSimultaneous {
678678
const areas: AreaPieces[] = [];
679679
for (let p = 1; p <= this.numplayers; p++) {
680680
const order = this.orders[p-1];
681-
if (Array.isArray(order) && order.length > 0) {
681+
if (order !== null && order !== undefined && Array.isArray(order) && order.length > 0) {
682682
areas.push({
683683
type: "pieces",
684684
pieces: order.map(c => cmd2glyph.get(c)!) as [string, ...string[]],

0 commit comments

Comments
 (0)