Skip to content

Commit

Permalink
fixed a crash bug due to overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EliphasNUIT committed Aug 16, 2023
1 parent 1b82e5c commit 731c67a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ internal override void EIEvtcParse(ulong gw2Build, FightData fightData, AgentDat
}
if (agentData.GetNPCsByID(ArcDPSEnums.TargetID.EchoOfScarletBriarNM).Count + agentData.GetNPCsByID(ArcDPSEnums.TargetID.EchoOfScarletBriarCM).Count == 0)
{
agentData.AddCustomNPCAgent(long.MaxValue, long.MaxValue, "Echo of Scarlet Briar", Spec.NPC, ArcDPSEnums.TargetID.EchoOfScarletBriarNM, false);
agentData.AddCustomNPCAgent(long.MaxValue, long.MaxValue, "Echo of Scarlet Briar", Spec.NPC, ArcDPSEnums.TargetID.EchoOfScarletBriarCM, false);
agentData.AddCustomNPCAgent(int.MaxValue, int.MaxValue, "Echo of Scarlet Briar", Spec.NPC, ArcDPSEnums.TargetID.EchoOfScarletBriarNM, false);
agentData.AddCustomNPCAgent(int.MaxValue, int.MaxValue, "Echo of Scarlet Briar", Spec.NPC, ArcDPSEnums.TargetID.EchoOfScarletBriarCM, false);
}
ComputeFightTargets(agentData, combatData, extensions);
var echoesOfScarlet = Targets.Where(x => x.IsSpecies(ArcDPSEnums.TargetID.EchoOfScarletBriarNM) || x.IsSpecies(ArcDPSEnums.TargetID.EchoOfScarletBriarCM)).ToList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ internal override void EIEvtcParse(ulong gw2Build, FightData fightData, AgentDat
// Add missing agents
for (int i = index; i < idsToUse.Count; i++)
{
agentData.AddCustomNPCAgent(long.MaxValue - idsToUse.Count + i, long.MaxValue, "Dragonvoid", Spec.NPC, idsToUse[i], false);
agentData.AddCustomNPCAgent(int.MaxValue - idsToUse.Count + i, int.MaxValue, "Dragonvoid", Spec.NPC, idsToUse[i], false);
}
//
ComputeFightTargets(agentData, combatData, extensions);
Expand Down

0 comments on commit 731c67a

Please sign in to comment.