Fix crash when trying to apply invalid game model update

Not sure how this could happen but w/e
This commit is contained in:
Shadowfacts 2023-02-28 14:40:48 -05:00
parent 33649cc5c0
commit c786c022b8
1 changed files with 1 additions and 1 deletions

View File

@ -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): case .playAnywhere(update.mark), .playSpecific(update.mark, column: update.subBoard.column, row: update.subBoard.row):
break break
default: default:
fatalError() return
} }
controller.play(on: update.subBoard, column: update.column, row: update.row) controller.play(on: update.subBoard, column: update.column, row: update.row)
} }