Fix code example for stateful event handler

This commit is contained in:
Alexander Falzberger 2022-06-13 11:04:37 +02:00 committed by GitHub
parent a7098fb074
commit 6a83a5bf6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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