Skip to content
Snippets Groups Projects
Commit 23718291 authored by StarToaster's avatar StarToaster
Browse files

Fixed wrong mutable state for world.

parent b605efee
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ struct BlueButtonProps {
#[widget]
fn BlueButton(props: BlueButtonProps) {
let (blue_button_handle, blue_button_hover_handle) = {
let world = context.get_global::<World>();
let world = context.get_global_mut::<World>();
if world.is_err() {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment