engine: restore bounds check in Delta_FindStructByIndex, as it gets passed arbitrary numbers too

This commit is contained in:
Alibek Omarov
2026-05-16 21:27:51 +05:00
parent fb6c4a224c
commit 8120669e5b

View File

@@ -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];
}