Real test coverage dor SAVE_TAMPERING.
This commit is contained in:
parent
43af075fa9
commit
5929a68b88
5 changed files with 26 additions and 3 deletions
|
@ -161,8 +161,8 @@ int restore(FILE* fp)
|
|||
if (save.version != VRSION) {
|
||||
rspeak(VERSION_SKEW, save.version / 10, MOD(save.version, 10), VRSION / 10, MOD(VRSION, 10));
|
||||
} else if (!is_valid(save.game)) {
|
||||
rspeak(SAVE_TAMPERING); // LCOV_EXCL_LINE
|
||||
exit(EXIT_SUCCESS); // LCOV_EXCL_LINE
|
||||
rspeak(SAVE_TAMPERING);
|
||||
exit(EXIT_SUCCESS);
|
||||
} else {
|
||||
game = save.game;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue