ref: 5bd02f982a878312065b4d81d05a90bc41a98c6c
parent: d3290195da55beae04d1bb86f811b6f8dd6b0663
author: Ben Harris <[email protected]>
date: Sun Jan 8 16:59:27 EST 2023
Mines: No moving once you're dead! If a Mines save file contains a move after the player has already died, this can lead to an assertion failure once there are more mines that covered squares. Better to just reject any move after the player's died.
--- a/mines.c
+++ b/mines.c
@@ -2690,6 +2690,9 @@
return ret;
} else {
+ /* Dead players should stop trying to move. */
+ if (from->dead)
+ return NULL;
ret = dup_game(from);
while (*move) {