Fix for bug #651310: Crash when saving

svn-id: r5898
This commit is contained in:
Max Horn 2002-12-10 11:14:40 +00:00
parent 6582e62e14
commit 58ea0648e5

View File

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