diff options
author | Gregory Montoir | 2005-10-14 19:51:56 +0000 |
---|---|---|
committer | Gregory Montoir | 2005-10-14 19:51:56 +0000 |
commit | 3e03ca6855b6d092addee1c0f7755d5d6208b893 (patch) | |
tree | 9f1b5c5c307d138efc042ffeba1efea11ac5327d /scumm/saveload.cpp | |
parent | fe6b21129de006d49ba1ad7f0470b3463fcfff28 (diff) | |
download | scummvm-rg350-3e03ca6855b6d092addee1c0f7755d5d6208b893.tar.gz scummvm-rg350-3e03ca6855b6d092addee1c0f7755d5d6208b893.tar.bz2 scummvm-rg350-3e03ca6855b6d092addee1c0f7755d5d6208b893.zip |
Slightly better that way.
svn-id: r19085
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r-- | scumm/saveload.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index f53eeef1dc..4e329e101e 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -1415,8 +1415,10 @@ void Serializer::saveArrayOf(void *b, int len, int datasize, byte filetype) { uint32 data; // speed up byte arrays - if (len > 0 && datasize == 1 && filetype == sleByte) { - saveBytes(b, len); + if (datasize == 1 && filetype == sleByte) { + if (len > 0) { + saveBytes(b, len); + } return; } |