Fix index access exception

This commit is contained in:
Kurt 2018-11-19 15:01:38 -08:00
parent e6aa4df384
commit e3e6268f90

View File

@ -249,10 +249,9 @@ private void LB_Trade_SelectedIndexChanged(object sender, EventArgs e)
private void GetAllies()
{
var entry = Encounters[eEntry];
if (eEntry < 0)
return;
var entry = Encounters[eEntry];
// USUM has slots with SOS allies beyond slot 100, accommodate by trimming an extra character
int endTrim = eEntry < 100 ? 5 : 6;