From 8e03a200ef53ce1e5d20590aae89fae0e640e873 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 5 May 2011 20:44:58 +0200 Subject: GOB: Fix a stupid typo in SlotFileIndexed::buildIndex() This should fix bug #3295893. The intention of this piece of code was to pad the first save slot name with spaces until it's as long as the longest save slot name, because the scripts use it to gauge the width of the save list. Unfortunately, I messed up there, overwriting variable space directly after the save names. In Urban Runner's case, this would be the list of inventory items. --- engines/gob/save/savehandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/gob') diff --git a/engines/gob/save/savehandler.cpp b/engines/gob/save/savehandler.cpp index 8cb8274402..21102ae786 100644 --- a/engines/gob/save/savehandler.cpp +++ b/engines/gob/save/savehandler.cpp @@ -113,8 +113,8 @@ void SlotFileIndexed::buildIndex(byte *buffer, SavePartInfo &info, if (setLongest) { uint32 slot0Len; for (slot0Len = strlen((const char *) bufferStart); slot0Len < longest; slot0Len++) - buffer[slot0Len] = ' '; - buffer[slot0Len] = '\0'; + bufferStart[slot0Len] = ' '; + bufferStart[slot0Len] = '\0'; } } -- cgit v1.2.3