aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cruise/dataLoader.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp
index 8532d3074e..d2426331b1 100644
--- a/engines/cruise/dataLoader.cpp
+++ b/engines/cruise/dataLoader.cpp
@@ -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;