summaryrefslogtreecommitdiff
path: root/src/d/d_stage.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2023-08-16 13:32:40 -0700
committerGitHub <noreply@github.com>2023-08-16 14:32:40 -0600
commit114582643fcdb8b99499984e7e8e1f6c4e0671da (patch)
treedb35b5a92bedd6f6e0f12045fe2188ad1269f6a7 /src/d/d_stage.cpp
parent7fd7d0c1f3ac84a4f10b41fab925c18e0be0c5dc (diff)
Kytag00 / Vrbox2 work, some cphase / kankyo doc (#1886)
* kytag00 work * d_a_vrbox2 close to done * rename cPhase enum values * some enums from noclip / kankyo doc * remove asm * use macro * uncomment ok-check.yml
Diffstat (limited to 'src/d/d_stage.cpp')
-rw-r--r--src/d/d_stage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/d_stage.cpp b/src/d/d_stage.cpp
index 2022567071..c3d6f0d846 100644
--- a/src/d/d_stage.cpp
+++ b/src/d/d_stage.cpp
@@ -2809,11 +2809,11 @@ static void layerTableLoader(void* i_data, dStage_dt_c* stageDt, int roomNo) {
dStage_dt_c_decode(i_data, stageDt, l_layerFuncTableA, ARRAY_SIZE(l_layerFuncTableA));
dStage_Elst_c* elst = i_dComIfGp_getStage()->getElst();
- if (elst != NULL && newRoomNo >= 0 && elst->field_0x0 > newRoomNo) {
- dStage_Elst_c::unkData* d = elst->field_0x4;
+ if (elst != NULL && newRoomNo >= 0 && elst->m_entryNum > newRoomNo) {
+ dStage_Elst_data* d = elst->m_entries;
int layer = dComIfG_play_c::getLayerNo(0);
dStage_setLayerTagName(l_envLayerFuncTable, ARRAY_SIZE(l_envLayerFuncTable),
- d[newRoomNo].field_0x0[layer]);
+ d[newRoomNo].m_layerTable[layer]);
dStage_dt_c_decode(i_data, stageDt, l_envLayerFuncTable, ARRAY_SIZE(l_envLayerFuncTable));
} else {
dStage_setLayerTagName(l_envLayerFuncTable, ARRAY_SIZE(l_envLayerFuncTable), 0);