Gee, should pay more attention and read comments I myself added years ago...

svn-id: r19248
This commit is contained in:
Max Horn 2005-10-22 23:49:29 +00:00
parent 117192363c
commit 578dc7914e

View File

@ -142,8 +142,12 @@ bool ScummEngine::loadState(int slot, bool compat) {
// We account for that by retrying once with swapped byte order.
if (hdr.ver > CURRENT_VER)
hdr.ver = SWAP_BYTES_32(hdr.ver);
if (hdr.ver < VER(8) || hdr.ver > CURRENT_VER)
{
// Reject save games which are too old or too new. Note that
// We do not really support V7 games, but still accept them here
// to work around a bug from the stone age (see below for more
// information).
if (hdr.ver < VER(7) || hdr.ver > CURRENT_VER) {
warning("Invalid version of '%s'", filename);
delete in;
return false;