game: init uninitialized variables

This commit is contained in:
nillerusr
2022-05-01 20:09:55 +03:00
parent 61cd8d0afc
commit 600695b15f
17 changed files with 37 additions and 56 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ void CFunc_Dust::Spawn()
//Since keyvalues can arrive in any order, and UTIL_StringToColor32 stomps alpha,
//install the alpha value here.
color32 clr = { m_Color.m_Value.r, m_Color.m_Value.g, m_Color.m_Value.b, m_iAlpha };
color32 clr = { m_Color.m_Value.r, m_Color.m_Value.g, m_Color.m_Value.b, (uint8)m_iAlpha };
m_Color.Set( clr );
BaseClass::Spawn();