From 6a83a5bf6b83e338f9984ab9561d41e3ee1e489d Mon Sep 17 00:00:00 2001 From: Alexander Falzberger Date: Mon, 13 Jun 2022 11:04:37 +0200 Subject: [PATCH] Fix code example for stateful event handler --- 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);