mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 17:42:17 +00:00
[Crash] Fix out of bound arrays, other potential crashes (#3166)
This commit is contained in:
1 parent
0d509a7f3a
commit
0df84e1ee6
9 files changed
+34
-24
No files matched your search
+2
-2
@@ -631,7 +631,7 @@ uint32 Raid::GetPlayerIndex(Client *c)
|
||||
|
||||
Client *Raid::GetClientByIndex(uint16 index)
|
||||
{
|
||||
if (index > MAX_RAID_MEMBERS) {
|
||||
if (index >= MAX_RAID_MEMBERS) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -2204,4 +2204,4 @@ void Raid::SetNewRaidLeader(uint32 i)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user