summaryrefslogtreecommitdiff
path: root/src/worldmapdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/worldmapdata.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/worldmapdata.cpp b/src/worldmapdata.cpp
index 2f23afc..a8e0cf9 100644
--- a/src/worldmapdata.cpp
+++ b/src/worldmapdata.cpp
@@ -48,6 +48,13 @@ bool dWMPathData_c::load(void *data) {
for (int j = 0; j < thisPath->segCount; j++) {
thisPath->segments[j] = header->segmentList[(u32)thisPath->segments[j]];
}
+
+ MapReport("Path @ %p\n", thisPath);
+ char **materialArray = thisPath->getMaterialArray();
+ MapReport("Material Array @ %p, Count is %d\n", materialArray, thisPath->materialCount);
+ for (int j = 0; j < thisPath->materialCount; j++) {
+ materialArray[j] = (char*)((u32)materialArray[j] + ptr);
+ }
}
MapReport("Fixing up point pointers [%d]\n", header->pointCount);