Skip to content

Commit

Permalink
Fix panic when overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAcPT committed Aug 14, 2024
1 parent e621000 commit e621000
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn generate_outliner_groups<M: ArmorMaterial, I: ModelProjectImageIO>(
// Part groups is a vector of strings, each string being a group name - The last group name is the parent group
let part_groups: Vec<String> = part.get_group().to_vec();

let parent_count = part_groups.len() - 1;
let parent_count = part_groups.len().saturating_sub(1);

let mut rotation_stack = Vec::new();

Expand Down

0 comments on commit e621000

Please sign in to comment.