android port
This commit is contained in:
@@ -25,7 +25,7 @@ void C_BaseModelEntity::Think( float fDelta )
|
||||
void C_BaseModelEntity::SetModel( const char *szName )
|
||||
{
|
||||
V_memset(m_szModel, 0, 256);
|
||||
V_strncpy(m_szModel, szName, 255);
|
||||
V_memcpy(m_szModel, szName, 256);
|
||||
}
|
||||
|
||||
void C_BaseModelEntity::UpdateModel()
|
||||
@@ -33,8 +33,7 @@ void C_BaseModelEntity::UpdateModel()
|
||||
if (!V_strncmp(m_szModel, m_szCurrentModel, 256))
|
||||
return;
|
||||
|
||||
V_memset(m_szCurrentModel, 0, 256);
|
||||
V_strncpy(m_szCurrentModel, m_szModel, 255);
|
||||
V_memcpy(m_szCurrentModel, m_szModel, 256);
|
||||
|
||||
if (m_hModelHandle)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user