Skip to content

Commit 91a3ab8

Browse files
committed
Use fixed female bodypart check
1 parent 890543f commit 91a3ab8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/validators/ids.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::collections::HashMap;
22

33
use super::Context;
44
use crate::{context::Mode, handlers::Handler};
5-
use tes3::esp::{Bodypart, BodypartId, EditorId, TES3Object, TypeInfo};
5+
use tes3::esp::{Bodypart, BodypartFlags, BodypartId, EditorId, TES3Object, TypeInfo};
66

77
const VANILLA_FACTIONS: [&str; 27] = [
88
"Ashlanders",
@@ -35,7 +35,7 @@ const VANILLA_FACTIONS: [&str; 27] = [
3535
];
3636

3737
fn is_female(part: &Bodypart) -> bool {
38-
part.data.female
38+
part.data.flags.contains(BodypartFlags::FEMALE)
3939
}
4040

4141
fn is_vampire_head(part: &Bodypart) -> bool {

0 commit comments

Comments
 (0)