From bc4470999c7f9499a43c50b90e1cc9e2ea2ed331 Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 1 Mar 2023 09:42:44 +1300 Subject: [PATCH] bug fix - used sector instead of quadrant as index in srs --- 84_Super_Star_Trek/rust/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/84_Super_Star_Trek/rust/src/commands.rs b/84_Super_Star_Trek/rust/src/commands.rs index 485f57af..34c30136 100644 --- a/84_Super_Star_Trek/rust/src/commands.rs +++ b/84_Super_Star_Trek/rust/src/commands.rs @@ -1,7 +1,7 @@ use crate::model::{Galaxy, Pos, SectorStatus, COURSES}; pub fn short_range_scan(model: &Galaxy) { - let quadrant = &model.quadrants[model.enterprise.sector.as_index()]; + let quadrant = &model.quadrants[model.enterprise.quadrant.as_index()]; println!("{:-^33}", ""); for y in 0..=7 {