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
@@ -222,12 +222,7 @@ static void ke_pos_set(st_class* i_this, st_ke_s* param_2, int param_3) {
static void ke_disp(st_class* i_this) {
fopAc_ac_c* actor = &i_this->actor;
#ifdef __MWERKS__
i_this->mLineMat.update(10, 1.2f, (GXColor){0xFF, 0x64, 0, 0xFF}, 2, &actor->tevStr);
#else
GXColor color = (GXColor){0xFF, 0x64, 0, 0xFF};
i_this->mLineMat.update(10, 1.2f, color, 2, &actor->tevStr);
#endif
dComIfGd_set3DlineMat(&i_this->mLineMat);
}