Compiler compat fix: Passing of rvalue GXColors to non-const reference parameters (#1142)

This commit is contained in:
LagoLunatic
2026-07-31 13:20:48 -04:00
committed by GitHub
parent 641268e340
commit 45718d8ccc
16 changed files with 87 additions and 171 deletions
-5
View File
@@ -305,12 +305,7 @@ static BOOL daHimo3_Draw(himo3_class* i_this) {
fVar1 = DEMO_SELECT(REG0_F(0) + 3.75f, 3.75f);
}
#ifdef __MWERKS__
i_this->mLineMat.update(i_this->m15C0, fVar1, (GXColor){200, 150, 50, 255}, 0, &actor->tevStr);
#else
GXColor color = (GXColor){200, 150, 50, 255};
i_this->mLineMat.update(i_this->m15C0, fVar1, color, 0, &actor->tevStr);
#endif
dComIfGd_set3DlineMat(&i_this->mLineMat);
if (i_this->m0298 != 0xf) {