mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 12:12:16 +00:00
CRUISE: Reduce the scope of a variable, remove a useless increment
This commit is contained in:
parent
a6ead6bba8
commit
7f19bbb21d
@ -433,7 +433,6 @@ int loadSetEntry(const char *name, uint8 *ptr, int currentEntryIdx, int currentD
|
||||
int resourceSize;
|
||||
int fileIndex;
|
||||
setHeaderEntry localBuffer;
|
||||
uint8 *ptr5;
|
||||
|
||||
Common::MemoryReadStream s4(ptr + offset + 6, 16);
|
||||
|
||||
@ -472,12 +471,9 @@ int loadSetEntry(const char *name, uint8 *ptr, int currentEntryIdx, int currentD
|
||||
filesDatabase[fileIndex].width += 2;
|
||||
}
|
||||
|
||||
ptr5 = ptr3 + localBuffer.offset + numIdx * 16;
|
||||
|
||||
uint8 *ptr5 = ptr3 + localBuffer.offset + numIdx * 16;
|
||||
memcpy(filesDatabase[fileIndex].subData.ptr, ptr5, resourceSize);
|
||||
|
||||
ptr5 += resourceSize;
|
||||
|
||||
switch (localBuffer.type) {
|
||||
case 0: { // polygon
|
||||
filesDatabase[fileIndex].subData.resourceType = OBJ_TYPE_POLY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user