From ffbcea507ba960a8e548b509bef60b5823243698 Mon Sep 17 00:00:00 2001 From: hheik <4469778+hheik@users.noreply.github.com> Date: Fri, 31 Mar 2023 00:04:32 +0300 Subject: [PATCH] fix: reading type data from wrong source --- src/json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.rs b/src/json.rs index cbde9f2..41b6df5 100644 --- a/src/json.rs +++ b/src/json.rs @@ -11,7 +11,7 @@ use crate::pokemon::*; lazy_static! { static ref DATA_DIR: PathBuf = "./data".into(); pub static ref TYPE_MAP: HashMap = { - 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) {