aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorRichieSams2013-09-06 22:48:15 -0500
committerRichieSams2013-09-06 22:50:43 -0500
commit558a987143a23826c25779f2a8c139130bf341c0 (patch)
treebf9bd0621df8eefa01aa5a397b6b23010950f150 /engines/zvision
parente92e3c5b0b59869a78a41fe1013ed73ab6ac59fe (diff)
downloadscummvm-rg350-558a987143a23826c25779f2a8c139130bf341c0.tar.gz
scummvm-rg350-558a987143a23826c25779f2a8c139130bf341c0.tar.bz2
scummvm-rg350-558a987143a23826c25779f2a8c139130bf341c0.zip
ZVISION: Fix accidental signed read from save file header
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/save_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/save_manager.cpp b/engines/zvision/save_manager.cpp
index 9611b9c9b7..595a0525c7 100644
--- a/engines/zvision/save_manager.cpp
+++ b/engines/zvision/save_manager.cpp
@@ -147,7 +147,7 @@ Common::Error SaveManager::loadGame(uint slot) {
}
bool SaveManager::readSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &header) {
- if (in->readSint32BE() != SAVEGAME_ID) {
+ if (in->readUint32BE() != SAVEGAME_ID) {
warning("File is not a ZVision save file. Aborting load");
return false;
}