[Scummvm-cvs-logs] scummvm master -> 7b03a6e604f154dbe23a5b927a4be01aaa28248d

fuzzie fuzzie at fuzzie.org
Thu May 26 13:26:28 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7b03a6e604 SWORD25: Fix making multiple saves at the same time.


Commit: 7b03a6e604f154dbe23a5b927a4be01aaa28248d
    https://github.com/scummvm/scummvm/commit/7b03a6e604f154dbe23a5b927a4be01aaa28248d
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-05-26T04:23:25-07:00

Commit Message:
SWORD25: Fix making multiple saves at the same time.

This adds a missing seek. Thanks to [md5] for guessing the cause.

Changed paths:
    engines/sword25/kernel/persistenceservice.cpp



diff --git a/engines/sword25/kernel/persistenceservice.cpp b/engines/sword25/kernel/persistenceservice.cpp
index 4329502..17e9199 100644
--- a/engines/sword25/kernel/persistenceservice.cpp
+++ b/engines/sword25/kernel/persistenceservice.cpp
@@ -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);






More information about the Scummvm-git-logs mailing list