mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 04:28:00 +00:00
[Crash] Fix out of bound arrays, other potential crashes (#3166)
This commit is contained in:
+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