diff --git a/src/common/leveltable.rs b/src/common/leveltable.rs index 08a9222..9fb1465 100644 --- a/src/common/leveltable.rs +++ b/src/common/leveltable.rs @@ -1,9 +1,9 @@ use std::fs::File; use serde_json::Value; use crate::entity::character::CharacterClass; -use std::cell::LazyCell; +use std::sync::LazyLock; -pub const LEVEL_TABLE: LazyCell = LazyCell::new(|| CharacterLevelTable::default()); +pub static LEVEL_TABLE: LazyLock = LazyLock::new(CharacterLevelTable::default); #[derive(Default, Copy, Clone, Debug, PartialEq, Eq)] pub struct CharacterStats {