Fix crash when trying to apply invalid game model update
Not sure how this could happen but w/e
This commit is contained in:
parent
33649cc5c0
commit
c786c022b8
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue