diff options
author | Filippos Karapetis | 2007-12-13 15:10:52 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-12-13 15:10:52 +0000 |
commit | 30be44055791c1951e15928984ca7eac8ffa9e58 (patch) | |
tree | 03d5025508b30c8d01183430da196d79370afbb3 /engines/cine | |
parent | dd14a43cacf6aaf04299e0eefc6ccb7d907f5656 (diff) | |
download | scummvm-rg350-30be44055791c1951e15928984ca7eac8ffa9e58.tar.gz scummvm-rg350-30be44055791c1951e15928984ca7eac8ffa9e58.tar.bz2 scummvm-rg350-30be44055791c1951e15928984ca7eac8ffa9e58.zip |
Fixed regression introduced by the latest cleanups
svn-id: r29849
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/anim.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/cine/anim.cpp b/engines/cine/anim.cpp index 8affd22e13..60f74447e4 100644 --- a/engines/cine/anim.cpp +++ b/engines/cine/anim.cpp @@ -380,13 +380,10 @@ void loadSpl(const char *resourceName, int16 idx) { if (idx >= 0) { entry = reserveFrame((uint16) partBuffer[foundFileIdx].unpackedSize, 1, 0, idx); assert(entry != -1); + memcpy(animDataTable[entry].ptr1, dataPtr, (uint16) partBuffer[foundFileIdx].unpackedSize); } else { entry = allocFrame((uint16) partBuffer[foundFileIdx].unpackedSize, 1, -1); - } - - memcpy(animDataTable[entry].ptr1, dataPtr, (uint16) partBuffer[foundFileIdx].unpackedSize); - - if (idx < 0) { + memcpy(animDataTable[entry].ptr1, dataPtr, partBuffer[foundFileIdx].unpackedSize); animDataTable[entry].fileIdx = foundFileIdx; animDataTable[entry].frameIdx = 0; strcpy(animDataTable[entry].name, currentPartName); |