Fix for WASM compilation
This commit is contained in:
parent
b82facbf70
commit
57adc4bc01
@ -37,6 +37,10 @@ macro_rules! deserialize_individually {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub fn save_game(_ecs: &mut World) {}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub fn save_game(ecs: &mut World) {
|
||||
// Create helper
|
||||
let mapcopy = ecs.get_mut::<crate::map::Map>().unwrap().clone();
|
||||
|
Loading…
Reference in New Issue
Block a user