mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: restore bounds check in Delta_FindStructByIndex, as it gets passed arbitrary numbers too
This commit is contained in:
@@ -460,6 +460,8 @@ static int Delta_NumTables( void )
|
||||
|
||||
static delta_info_t *Delta_FindStructByIndex( int index )
|
||||
{
|
||||
if( index < 0 || index >= ARRAYSIZE( dt_info ))
|
||||
return NULL;
|
||||
return &dt_info[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user