diff options
| author | Ludvig Strigeus | 2001-11-09 22:44:26 +0000 |
|---|---|---|
| committer | Ludvig Strigeus | 2001-11-09 22:44:26 +0000 |
| commit | 2a7540043cd1a1732298982ee6f9019f6ffc1a59 (patch) | |
| tree | b0899af043d846ab6de2787bbcfa3755ce5faf8b /saveload.cpp | |
| parent | 67eec161ea70a421b7c7448ed40583e26d4f527d (diff) | |
| download | scummvm-rg350-2a7540043cd1a1732298982ee6f9019f6ffc1a59.tar.gz scummvm-rg350-2a7540043cd1a1732298982ee6f9019f6ffc1a59.tar.bz2 scummvm-rg350-2a7540043cd1a1732298982ee6f9019f6ffc1a59.zip | |
bug in save/loader
svn-id: r3481
Diffstat (limited to 'saveload.cpp')
| -rw-r--r-- | saveload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/saveload.cpp b/saveload.cpp index f4a12ae035..453c527985 100644 --- a/saveload.cpp +++ b/saveload.cpp @@ -618,7 +618,8 @@ void Serializer::saveLoadArrayOf(void *b, int len, int datasize, byte filetype) void Serializer::saveLoadArrayOf(void *b, int num, int datasize, const SaveLoadEntry *sle) { byte *data = (byte*)b; - while (--num) { + + while (--num>=0) { saveLoadEntries(data, sle); data += datasize; } |
