summaryrefslogtreecommitdiff
path: root/src/d/d_shop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/d/d_shop.cpp')
-rw-r--r--src/d/d_shop.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/d/d_shop.cpp b/src/d/d_shop.cpp
index 2b65906b..bf9a7ce0 100644
--- a/src/d/d_shop.cpp
+++ b/src/d/d_shop.cpp
@@ -1399,11 +1399,10 @@ u8 dShop_BoughtErrorStatus(ShopItems_c* shopItems, int param_2, int param_3) {
/* 800606A8-80060830 .text __ct__12ShopCursor_cFP12J3DModelDataP15J3DAnmTevRegKeyf */
ShopCursor_c::ShopCursor_c(J3DModelData* modelData, J3DAnmTevRegKey* brkData, f32 param_2) {
- // TODO: this should be a J3DZModeInfo, but that's 3 bytes when inside arrays, while this is supposed to be 4 bytes, with 1-byte alignment.
- static u8 ZModeInfo[4] = {GX_TRUE, GX_ALWAYS, GX_TRUE};
+ static J3DZModeInfo_4bytes ZModeInfo = {GX_TRUE, GX_ALWAYS, GX_TRUE};
for (u16 i = 0; i < modelData->getMaterialNum(); i++) {
J3DMaterial* mat = modelData->getMaterialNodePointer(i);
- mat->getZMode()->setZModeInfo(*(J3DZModeInfo*)&ZModeInfo);
+ mat->getZMode()->setZModeInfo(ZModeInfo.parent);
}
for (int i = 0; i < (int)ARRAY_SIZE(mpModels); i++) {