Merge pull request #577 from falzberger/patch-1
Fix code example for stateful event handler
This commit is contained in:
commit
d680fe9532
@ -76,7 +76,7 @@ pub fn main() {
|
|||||||
states.insert("bool_state".into(), Dynamic::FALSE);
|
states.insert("bool_state".into(), Dynamic::FALSE);
|
||||||
|
|
||||||
// Add the main states-holding object map and call it 'state'
|
// Add the main states-holding object map and call it 'state'
|
||||||
scope.push("state", Map::new());
|
scope.push("state", states);
|
||||||
|
|
||||||
// Compile the handler script.
|
// Compile the handler script.
|
||||||
println!("> Loading script file: {}", path);
|
println!("> Loading script file: {}", path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user