Change minimum logic

0-5 -> add pk has a max scroll of 0 not 1
This commit is contained in:
Kurt
2015-12-19 16:32:22 -08:00
parent d325028bec
commit aa7af78cd9

View File

@@ -219,7 +219,7 @@ private void clickSet(object sender, EventArgs e)
slotColor = Properties.Resources.slotSet;
if ((SCR_Box.Maximum+1)*6 < Results.Count)
SCR_Box.Maximum += 1;
SCR_Box.Value = Math.Max(1, SCR_Box.Maximum - PKXBOXES.Length/6 + 1);
SCR_Box.Value = Math.Max(0, SCR_Box.Maximum - PKXBOXES.Length/6 + 1);
FillPKXBoxes(SCR_Box.Value);
Util.Alert("Added Pokémon from tabs to database.");
}