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
@@ -594,12 +594,7 @@ static void ke_disp(mo2_class* i_this) {
ke_control(i_this, pkVar2, i);
ke_draw(i_this, pkVar2, i);
}
#ifdef __MWERKS__
i_this->m3Dline.update(10, 1.25f, (GXColor){0xFF, 0x64, 0, 0xFF}, 2, &actor->tevStr);
#else
GXColor local_18 = (GXColor){0xFF, 0x64, 0, 0xFF};
i_this->m3Dline.update(10, 1.25f, local_18, 2, &actor->tevStr);
#endif
dComIfGd_set3DlineMat(&i_this->m3Dline);
}