diff options
Diffstat (limited to 'saga/saveload.cpp')
-rw-r--r-- | saga/saveload.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/saga/saveload.cpp b/saga/saveload.cpp index 402549c3b6..44b825b665 100644 --- a/saga/saveload.cpp +++ b/saga/saveload.cpp @@ -39,7 +39,7 @@ #include "saga/scene.h" #include "saga/script.h" -#define CURRENT_SAGA_VER 3 +#define CURRENT_SAGA_VER 4 namespace Saga { @@ -213,6 +213,9 @@ void SagaEngine::load(const char *fileName) { _saveHeader.size = FROM_LE_32(_saveHeader.size); _saveHeader.version = FROM_LE_32(_saveHeader.version); + if (_saveHeader.version < 4) + warning("This savegame is not endian-safe. There may be problems"); + if (_saveHeader.type != MKID('SAGA')) { error("SagaEngine::load wrong format"); } |