aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorEugene Sandulenko2011-11-02 23:54:48 +0000
committerEugene Sandulenko2011-11-02 23:54:48 +0000
commit3bd615ae9b78ded9a51b7320a602f1c46c9f57ef (patch)
tree9d6a907c4e67f1fa05b81363c5c5842ae652677f /engines/lastexpress
parentc8bc4e37a83e01b149bef85f391b5d7e99c4bf0d (diff)
downloadscummvm-rg350-3bd615ae9b78ded9a51b7320a602f1c46c9f57ef.tar.gz
scummvm-rg350-3bd615ae9b78ded9a51b7320a602f1c46c9f57ef.tar.bz2
scummvm-rg350-3bd615ae9b78ded9a51b7320a602f1c46c9f57ef.zip
LASTEXPRESS: Fix incorrect read() call
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/game/savegame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/game/savegame.cpp b/engines/lastexpress/game/savegame.cpp
index 57c18b5697..e5b84ea6de 100644
--- a/engines/lastexpress/game/savegame.cpp
+++ b/engines/lastexpress/game/savegame.cpp
@@ -158,7 +158,7 @@ void SaveLoad::loadStream(GameId id) {
while (!save->eos() && !save->err()) {
_engine->pollEvents();
- uint32 count = save->read(buf, sizeof(buf));
+ uint32 count = save->read(buf, sizeof(*buf));
if (count) {
uint32 w = _savegame->write(buf, count);
assert (w == count);