Skip to content

Commit

Permalink
SWORD25: Fix making multiple saves at the same time.
Browse files Browse the repository at this point in the history
This adds a missing seek. Thanks to [md5] for guessing the cause.
  • Loading branch information
fuzzie committed May 26, 2011
1 parent 86563d0 commit 7b03a6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engines/sword25/kernel/persistenceservice.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 7b03a6e

Please sign in to comment.