Fixed regression introduced by the latest cleanups

svn-id: r29849
This commit is contained in:
Filippos Karapetis 2007-12-13 15:10:52 +00:00
parent dd14a43cac
commit 30be440557

View File

@ -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);