mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
Fixed regression introduced by the latest cleanups
svn-id: r29849
This commit is contained in:
parent
dd14a43cac
commit
30be440557
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user