game: fix compilation problems for clang

This commit is contained in:
nillerusr
2022-06-20 14:17:53 +03:00
parent ff99055be1
commit ddafaa790e
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -3538,7 +3538,7 @@ void CNPC_PlayerCompanion::InputClearAllOuputs( inputdata_t &inputdata )
typedescription_t *dataDesc = &dmap->dataDesc[i];
if ( ( dataDesc->fieldType == FIELD_CUSTOM ) && ( dataDesc->flags & FTYPEDESC_OUTPUT ) )
{
CBaseEntityOutput *pOutput = (CBaseEntityOutput *)((int)this + (int)dataDesc->fieldOffset[0]);
CBaseEntityOutput *pOutput = (CBaseEntityOutput *)((intp)this + (intp)dataDesc->fieldOffset[0]);
pOutput->DeleteAllElements();
/*
int nConnections = pOutput->NumberOfElements();
+1 -1
View File
@@ -556,7 +556,7 @@ void CPortal_Player::UpdateExpression( void )
return;
}
char const szScene[256];
char szScene[256] = { 0 };
response->GetResponse( szScene, sizeof(szScene) );
// Ignore updates that choose the same scene