mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 09:21:08 +00:00
LASTEXPRESS: Fix read size parameter.
This commit is contained in:
parent
3ad89a0d18
commit
31e5b96fae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user