summaryrefslogtreecommitdiff
path: root/src/d/d_stage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/d/d_stage.cpp')
-rw-r--r--src/d/d_stage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/d_stage.cpp b/src/d/d_stage.cpp
index 9eeb12ea..45fc7e8f 100644
--- a/src/d/d_stage.cpp
+++ b/src/d/d_stage.cpp
@@ -1758,7 +1758,7 @@ int dStage_pathInfoInit(dStage_dt_c* i_stage, void* i_data, int i_num, void*) {
i_stage->setPathInfo(pStagePath);
for (s32 i = 0; i < pStagePath->num; pPath++, i++)
- pPath->mpPnt = (dPath__Point*)((u32)*((int*)i_stage->getPntInf()+1) + (u32)pPath->mpPnt); // TODO clean this up
+ pPath->m_points = (dPnt*)((u32)pPath->m_points + i_stage->getPntInf()->m_pnt_offset);
return 1;
}
@@ -1775,7 +1775,7 @@ int dStage_rpatInfoInit(dStage_dt_c* i_stage, void* i_data, int i_num, void*) {
i_stage->setPath2Info(pStagePath);
for (s32 i = 0; i < pStagePath->num; pPath++, i++)
- pPath->mpPnt = (dPath__Point*)((u32)*((int*)i_stage->getPnt2Inf()+1) + (u32)pPath->mpPnt); // TODO clean this up
+ pPath->m_points = (dPnt*)((u32)pPath->m_points + i_stage->getPnt2Inf()->m_pnt_offset);
return 1;
}