aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cine/anim.cpp7
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);