diff --git a/ref/gl/gl_alias.c b/ref/gl/gl_alias.c index 71069a50..c96aa14a 100644 --- a/ref/gl/gl_alias.c +++ b/ref/gl/gl_alias.c @@ -292,8 +292,8 @@ void BuildTris( void ) t = (t + 0.5f) / m_pAliasHeader->skinheight; // Carmack use floats and Valve use shorts here... - *(float *)&g_commands[g_numcommands++] = s; - *(float *)&g_commands[g_numcommands++] = t; + g_commands[g_numcommands++] = FloatAsInt( s ); + g_commands[g_numcommands++] = FloatAsInt( t ); } }