From 280d634455cd08846904cf4b897467f709f0c88e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 13 Dec 2007 17:03:14 +0000 Subject: [PATCH] Fixed an incorrect copy/paste svn-id: r29850 --- engines/cine/anim.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engines/cine/anim.cpp b/engines/cine/anim.cpp index 60f74447e4a..00870905ce2 100644 --- a/engines/cine/anim.cpp +++ b/engines/cine/anim.cpp @@ -379,11 +379,12 @@ 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); + memcpy(animDataTable[entry].ptr1, dataPtr, partBuffer[foundFileIdx].unpackedSize); } else { entry = allocFrame((uint16) partBuffer[foundFileIdx].unpackedSize, 1, -1); - memcpy(animDataTable[entry].ptr1, dataPtr, partBuffer[foundFileIdx].unpackedSize); + assert(entry != -1); + memcpy(animDataTable[entry].ptr1, dataPtr, (uint16) partBuffer[foundFileIdx].unpackedSize); + animDataTable[entry].fileIdx = foundFileIdx; animDataTable[entry].frameIdx = 0; strcpy(animDataTable[entry].name, currentPartName);