From 58ea0648e52eb09b6d66f409664d0e7e647374e5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 10 Dec 2002 11:14:40 +0000 Subject: [PATCH] Fix for bug #651310: Crash when saving svn-id: r5898 --- scumm/saveload.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index c8648b8de8a..6cc2746ed81 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -733,7 +733,10 @@ void Serializer::saveArrayOf(void *b, int len, int datasize, byte filetype) } while (--len >= 0) { - if (datasize == 1) { + if (datasize == 0) { + // Do nothing for obsolete data + data = 0; + } else if (datasize == 1) { data = *(byte *)at; at += 1; } else if (datasize == 2) {