[Scummvm-cvs-logs] scummvm master -> 9e048bc207c189f32865bc01961b7d1fc9568847

Strangerke Strangerke at scummvm.org
Thu Dec 24 08:09:02 CET 2015


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:
9e048bc207 LAB: Stop adding useless garbage at the end of the savegames


Commit: 9e048bc207c189f32865bc01961b7d1fc9568847
    https://github.com/scummvm/scummvm/commit/9e048bc207c189f32865bc01961b7d1fc9568847
Author: Strangerke (strangerke at scummvm.org)
Date: 2015-12-24T08:03:04+01:00

Commit Message:
LAB: Stop adding useless garbage at the end of the savegames

Changed paths:
    engines/lab/savegame.cpp



diff --git a/engines/lab/savegame.cpp b/engines/lab/savegame.cpp
index f75856c..37675ba 100644
--- a/engines/lab/savegame.cpp
+++ b/engines/lab/savegame.cpp
@@ -147,7 +147,7 @@ bool LabEngine::saveGame(int slot, const Common::String desc) {
 	_tilePuzzle->save(file);
 
 	// Breadcrumbs
-	for (uint i = 0; i < sizeof(_breadCrumbs); i++) {
+	for (uint i = 0; i < 128; i++) {
 		file->writeUint16LE(_breadCrumbs[i]._roomNum);
 		file->writeUint16LE(_breadCrumbs[i]._direction);
 	}






More information about the Scummvm-git-logs mailing list