CGrenadeLauncher: Fix CModelFlags assignment

This commit is contained in:
Luke Street 2020-03-30 23:31:46 -04:00
parent 2e3d1c980b
commit 782a13c0a4
1 changed files with 2 additions and 2 deletions

View File

@ -127,9 +127,9 @@ std::optional<zeus::CAABox> CGrenadeLauncher::GetTouchBounds() const {
void CGrenadeLauncher::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum) { void CGrenadeLauncher::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum) {
if (x3f4_color3.a() == 1.f) { if (x3f4_color3.a() == 1.f) {
xb4_drawFlags = {2, 0, 3, {x3f4_color3, 1.f}}; xb4_drawFlags = CModelFlags{2, 0, 3, zeus::CColor{x3f4_color3, 1.f}};
} else { } else {
xb4_drawFlags = {5, 0, 3, x3f4_color3}; xb4_drawFlags = CModelFlags{5, 0, 3, x3f4_color3};
} }
CActor::PreRender(mgr, frustum); CActor::PreRender(mgr, frustum);
} }