Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sp/src/game/client/c_baseanimating.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ float C_BaseAnimating::GetPoseParameter( int iPoseParameter )
if ( pStudioHdr->GetNumPoseParameters() < iPoseParameter )
return 0.0f;

if ( iPoseParameter < 0 )
if ( iPoseParameter < 0 || iPoseParameter >= MAXSTUDIOPOSEPARAM )
return 0.0f;

return m_flPoseParameter[iPoseParameter];
Expand Down Expand Up @@ -6054,7 +6054,7 @@ float C_BaseAnimating::SetPoseParameter( CStudioHdr *pStudioHdr, int iParameter,
return flValue;
}

if (iParameter >= 0)
if (iParameter >= 0 && iParameter < MAXSTUDIOPOSEPARAM)
{
float flNewValue;
flValue = Studio_SetPoseParameter( pStudioHdr, iParameter, flValue, flNewValue );
Expand Down
2 changes: 1 addition & 1 deletion sp/src/game/client/cdll_client_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ int CHLClient::Init( CreateInterfaceFn appSystemFactory, CreateInterfaceFn physi
if (!g_pMatSystemSurface)
return false;

if ( !CommandLine()->CheckParm( "-noscripting") )
if ( !CommandLine()->CheckParm( "-noscripting" ) && !CommandLine()->CheckParm( "-noscripting_client" ) )
{
scriptmanager = (IScriptManager *)appSystemFactory( VSCRIPT_INTERFACE_VERSION, NULL );

Expand Down
Loading