From 57adc4bc0155c46325414af09aa068b6edf7f4fc Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 9 Nov 2021 10:49:39 -0500 Subject: [PATCH] Fix for WASM compilation --- src/saveload_system.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/saveload_system.rs b/src/saveload_system.rs index beffbc2..2f51fab 100644 --- a/src/saveload_system.rs +++ b/src/saveload_system.rs @@ -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::().unwrap().clone();