diff options
| author | Caroline Madsen <69010899+randomsalience@users.noreply.github.com> | 2025-02-23 17:43:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-23 14:43:25 -0800 |
| commit | e3d0b94122116ae1cd8188078ad6e710eb54a26c (patch) | |
| tree | ebca4b093d6afcaa9f344e99cd11bc3de0024169 /src/d/d_path.cpp | |
| parent | 531a6d6d68655a1e7aad0b511971ff6c777e6d86 (diff) | |
d_a_npc work (#2306)
Diffstat (limited to 'src/d/d_path.cpp')
| -rw-r--r-- | src/d/d_path.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/d/d_path.cpp b/src/d/d_path.cpp index ff07c01416..3b686c8eb6 100644 --- a/src/d/d_path.cpp +++ b/src/d/d_path.cpp @@ -22,12 +22,12 @@ dPath* dPath_GetRoomPath(int path_index, int room_no) { if (room_no == -1) { path = dComIfGp_getStage()->getPath2Inf(); } else { - dStage_roomStatus_c* roomSt = dComIfGp_roomControl_getStatusRoomDt(room_no); - if (roomSt == NULL) { + dStage_roomDt_c* roomDt = dComIfGp_roomControl_getStatusRoomDt(room_no); + if (roomDt == NULL) { return NULL; } - path = roomSt->mRoomDt.getPath2Inf(); + path = roomDt->getPath2Inf(); } if (path == NULL || path_index < 0 || path_index >= path->m_num) { @@ -45,12 +45,12 @@ dPath* dPath_GetNextRoomPath(dPath const* p_path, int room_no) { if (room_no == -1) { path = dComIfGp_getStage()->getPath2Inf(); } else { - dStage_roomStatus_c* roomSt = dComIfGp_roomControl_getStatusRoomDt(room_no); - if (roomSt == NULL) { + dStage_roomDt_c* roomDt = dComIfGp_roomControl_getStatusRoomDt(room_no); + if (roomDt == NULL) { return NULL; } - path = roomSt->mRoomDt.getPath2Inf(); + path = roomDt->getPath2Inf(); } int next_id = p_path->m_nextID; @@ -110,4 +110,4 @@ u8 dPath_GetPolyRoomPathVec(cBgS_PolyInfo const& poly, cXyz* p_pathVec, int* par *param_2 = path->field_0x4; return 1; -}
\ No newline at end of file +} |
