Skip to content

Commit

Permalink
Fixed list bounds on loop
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchDizzle committed Apr 12, 2019
1 parent 6eb24d7 commit 46fa798
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified GroupHandler/addons/sourcemod/plugins/GroupHandler.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions GroupHandler/addons/sourcemod/scripting/GroupHandler.sp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ArrayList groupCache; //Contains a full list of [userId, groupIndex],
bool canCacheGroups;

Handle hF_GroupCreated;
#define PLUGIN_VERSION "1.1.1"
#define PLUGIN_VERSION "1.1.2"
public Plugin myinfo = {
name = "Dynamic Admin Group Handler",
author = "Mitch",
Expand Down Expand Up @@ -67,7 +67,7 @@ public Action Timer_RecacheGroups(Handle timer) {
GroupId groupId = INVALID_GROUP_ID;
AdminId adminId = INVALID_ADMIN_ID;
GroupId[] tempGroupMap = new GroupId[groupList.Length];
for(int i = 0; i < groupCache.Length; i++) {
for(int i = 0; i < groupList.Length; i++) {
tempGroupMap[i] = INVALID_GROUP_ID;
}
for(int client = 1; client <= MaxClients; client++) {
Expand Down

0 comments on commit 46fa798

Please sign in to comment.