fix: include non-tier1 roots in tank tech tree routes

This commit is contained in:
GonnaHetzMe committed 2026-03-25 00:43:30 +01:00
1 parent 191843f972
commit fe9b543a75
1 file changed
+1 -1
@@ -26,7 +26,7 @@ export function TechTreeSection({ skeleton }: MaybeSkeletonComponentProps) {
function extend(line: Line): Line[] {
const root = tankDefinitions.tanks[line.at(-1)!];
if (root.ancestors === undefined || root.tier === 1) {
if (root.ancestors === undefined || root.ancestors.length === 0 || root.tier === 1) {
return [line];
} else {
if (root.ancestors.length === 1 || root.tier === 2) {