From 3bd615ae9b78ded9a51b7320a602f1c46c9f57ef Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 2 Nov 2011 23:54:48 +0000 Subject: LASTEXPRESS: Fix incorrect read() call --- engines/lastexpress/game/savegame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/lastexpress/game') 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); -- cgit v1.2.3