diff --git a/examples/event_handler_map/main.rs b/examples/event_handler_map/main.rs index 24f9df2a..1e7d1102 100644 --- a/examples/event_handler_map/main.rs +++ b/examples/event_handler_map/main.rs @@ -76,7 +76,7 @@ pub fn main() { states.insert("bool_state".into(), Dynamic::FALSE); // Add the main states-holding object map and call it 'state' - scope.push("state", Map::new()); + scope.push("state", states); // Compile the handler script. println!("> Loading script file: {}", path);