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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue