Fix array bounds.

This commit is contained in:
Andrey Akhmichin 2024-02-24 13:32:57 +05:00
parent 6f4c02adbd
commit e42ca319de
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
extern int f_Observer; // flag to indicate if player is in observer mode
// weapon firing delay based on skill (min and max delay for each weapon)
float primary_fire_delay[WEAPON_SNARK+1][5][2] = {
float primary_fire_delay[MAX_WEAPONS][5][2] = {
// WEAPON_NONE - NOT USED
{{0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}},
// WEAPON_CROWBAR
@ -58,7 +58,7 @@ float primary_fire_delay[WEAPON_SNARK+1][5][2] = {
{{0.0, 0.1}, {0.1, 0.2}, {0.2, 0.5}, {0.5, 0.7}, {0.6, 1.0}},
};
float secondary_fire_delay[WEAPON_SNARK+1][5][2] = {
float secondary_fire_delay[MAX_WEAPONS][5][2] = {
// WEAPON_NONE - NOT USED
{{0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}},
// WEAPON_CROWBAR - Not applicable