Fix for WASM compilation

This commit is contained in:
Timothy Warren 2021-11-09 10:49:39 -05:00
parent b82facbf70
commit 57adc4bc01

View File

@ -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();