From 23cd4d0f6a35753f974eb30d273428dbfd5551e1 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 13 Jun 2022 16:32:33 +0800 Subject: [PATCH] Fix typo. --- examples/event_handler_map/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);