diff --git a/optional/handlers/gearhandler.simba b/optional/handlers/gearhandler.simba index 291c2910..aad59637 100644 --- a/optional/handlers/gearhandler.simba +++ b/optional/handlers/gearhandler.simba @@ -203,6 +203,8 @@ end; function TRSGearHandler.Get(idx: Int32): TRSGear; begin + if idx = -1 then + Exit; if idx <= High(Self.Sets) then Result := Self.Sets[idx]; end;