diff --git a/src/ssn/findReleasePath.ts b/src/ssn/findReleasePath.ts index d0d5f93..6850f86 100644 --- a/src/ssn/findReleasePath.ts +++ b/src/ssn/findReleasePath.ts @@ -3,6 +3,10 @@ import verifyProductName from '../ssn/verify/verifyProductName'; /** For the given release in the given product, returns from which releases we can patch to this release. */ function getFroms({ product, to: releaseTo}: {product: Product, to: number}) { + if (releaseTo < 0) { + return []; + } + //The launcher (patcher, patcher2014, patcher2017) is always installing from -1, never from a previous version if (product.startsWith('patcher')) { return [-1];