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:
Alyssa Milburn 2011-05-26 13:20:06 +02:00
parent 86563d0009
commit 7b03a6e604

View File

@ -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);