Skip to content

Commit 83b98bc

Browse files
committed
Create ui_nodes_custom_buttons map
1 parent 20db7cd commit 83b98bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/ts/ui.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function ui_theme_create(): ui_theme_t {
155155
return raw;
156156
}
157157

158-
let ui_nodes_custom_buttons: map_t<string, (i: i32)=>void>;
158+
let ui_nodes_custom_buttons: map_t<string, (i: i32)=>void> = map_create();
159159

160160
function nodes_on_custom_button(node_id: i32, button_name: string) {
161161
let f: (i: i32) => void = map_get(ui_nodes_custom_buttons, button_name);

0 commit comments

Comments
 (0)