From c786c022b8e6c8b4a48f7f9f9c741ae6dbc221dd Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 28 Feb 2023 14:40:48 -0500 Subject: [PATCH] Fix crash when trying to apply invalid game model update Not sure how this could happen but w/e --- Packages/TTTKit/Sources/TTTKit/AI/GameModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/TTTKit/Sources/TTTKit/AI/GameModel.swift b/Packages/TTTKit/Sources/TTTKit/AI/GameModel.swift index ea71cef6..5610b699 100644 --- a/Packages/TTTKit/Sources/TTTKit/AI/GameModel.swift +++ b/Packages/TTTKit/Sources/TTTKit/AI/GameModel.swift @@ -62,7 +62,7 @@ public class GameModel: NSObject, NSCopying, GKGameModel { case .playAnywhere(update.mark), .playSpecific(update.mark, column: update.subBoard.column, row: update.subBoard.row): break default: - fatalError() + return } controller.play(on: update.subBoard, column: update.column, row: update.row) }