From 174445c175a4e6ff316f0447f44214377c6e7158 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 26 Oct 2020 00:01:05 -0600 Subject: [PATCH] properly load techs --- src/entity/gateway/postgres/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/gateway/postgres/models.rs b/src/entity/gateway/postgres/models.rs index f60a9cf..46b84d5 100644 --- a/src/entity/gateway/postgres/models.rs +++ b/src/entity/gateway/postgres/models.rs @@ -242,7 +242,7 @@ impl Into for PgCharacter { prop_y: self.prop_y, }, techs: CharacterTechniques { - techs: self.techs.iter().enumerate().take(19).map(|(i, t)| (tech::Technique::from_value(i as u8), TechLevel(*t)) ).collect() + techs: self.techs.iter().enumerate().take(19).filter(|(_, t)| **t != 0xFF).map(|(i, t)| (tech::Technique::from_value(i as u8), TechLevel(*t)) ).collect() }, config: CharacterConfig { raw_data: vec_to_array(self.config)