Skip to content

Commit 13e8224

Browse files
committed
fix resource issues
1 parent 4b91ac6 commit 13e8224

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

assets/scripts/game_of_life.rhai

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fn on_script_unloaded() {
124124
info.call("Rhai: I am being unloaded, goodbye!");
125125

126126
// set state to 0's
127-
let life_state = fetch_life_state();
127+
let life_state = fetch_life_state!();
128128
let cells = life_state.cells;
129129
for i in 0..cells.len.call() {
130130
cells[i] = 0;

crates/bevy_mod_scripting_core/src/commands.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ impl<P: IntoScriptPluginParams> Command for DeleteScript<P> {
8585
script.context_id,
8686
self.id
8787
);
88-
return;
8988
}
9089
};
9190
} else {

0 commit comments

Comments
 (0)