mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 23:01:42 +00:00
SWORD25: Fix making multiple saves at the same time.
This adds a missing seek. Thanks to [md5] for guessing the cause.
This commit is contained in:
parent
86563d0009
commit
7b03a6e604
@ -301,6 +301,7 @@ bool PersistenceService::saveGame(uint slotID, const Common::String &screenshotF
|
||||
|
||||
if (thumbnail) {
|
||||
byte *buffer = new byte[FILE_COPY_BUFFER_SIZE];
|
||||
thumbnail->seek(0, SEEK_SET);
|
||||
while (!thumbnail->eos()) {
|
||||
int bytesRead = thumbnail->read(&buffer[0], FILE_COPY_BUFFER_SIZE);
|
||||
file->write(&buffer[0], bytesRead);
|
||||
|
Loading…
x
Reference in New Issue
Block a user