LASTEXPRESS: Fix read size parameter.

This commit is contained in:
Johannes Schickel 2011-11-03 02:27:26 +01:00
parent 3ad89a0d18
commit 31e5b96fae

View File

@ -154,11 +154,11 @@ void SaveLoad::loadStream(GameId id) {
error("[SaveLoad::loadStream] Savegame stream is invalid");
// Load all savegame data
uint8* buf = new uint8[8192];
uint8 *buf = new uint8[8192];
while (!save->eos() && !save->err()) {
_engine->pollEvents();
uint32 count = save->read(buf, sizeof(*buf));
uint32 count = save->read(buf, 8192);
if (count) {
uint32 w = _savegame->write(buf, count);
assert (w == count);