Skip to content

Commit

Permalink
Fix a forgotten array not using MAXPLAYERS (#16)
Browse files Browse the repository at this point in the history
Fix a forgotten array not using MAXPLAYER.
  • Loading branch information
tsuza authored Aug 27, 2024
1 parent 03bffb0 commit 99eca7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## Release Notes
# Release Notes

## [2.0.6]

### Fixes
- Fix an array not using MAXPLAYERS ( important for unrestricted maxplayers count )

## [2.0.5]

Expand Down
4 changes: 2 additions & 2 deletions scripting/attribute_viewmodel_override.sp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public Plugin myinfo =
name = "[TF2] Attribute: Viewmodel Override",
author = "tsuza",
description = "[TF2] Attributes to modify arms, arms animations, firstperson and thirdparson weapon model.",
version = "2.0.5",
version = "2.0.6",
url = "https://github.com/tsuza/TF2CA-weaponmodel_override"
};

Expand Down Expand Up @@ -316,7 +316,7 @@ void SDHook_OnWeaponEquipPost(int client, int weapon)

void SDHook_OnWeaponSwitchPost(int client, int weapon)
{
static int last_weapon_list[36] = {-1, ...};
static int last_weapon_list[MAXPLAYERS + 1] = {-1, ...};

if(!IsValidEntity(weapon))
return;
Expand Down

0 comments on commit 99eca7c

Please sign in to comment.