fix: reading type data from wrong source

master
hheik 2023-03-31 00:04:32 +03:00
parent 635e67d6c7
commit ffbcea507b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ use crate::pokemon::*;
lazy_static! {
static ref DATA_DIR: PathBuf = "./data".into();
pub static ref TYPE_MAP: HashMap<u8, Type> = {
let types = read_pokedex();
let types = read_types();
let mut map = HashMap::new();
for type_data in types.members() {
if let Some(type_data) = Type::from_json(type_data) {