Only allow a maximum of drone - 1 drones to be split off

This commit is contained in:
cncfanatics
2010-10-25 10:08:35 +02:00
parent 827f2a8ada
commit 23cc890d1f

View File

@@ -32,7 +32,7 @@ class DroneSpinner(wx.Dialog):
bSizer1 = wx.BoxSizer(wx.HORIZONTAL)
self.spinner = wx.SpinCtrl(self)
self.spinner.SetRange(1, drone.amount)
self.spinner.SetRange(1, drone.amount - 1)
self.spinner.SetValue(1)
bSizer1.Add(self.spinner, 0, wx.ALL, 5)