summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/io.c b/io.c
index 8cdb249..9207093 100644
--- a/io.c
+++ b/io.c
@@ -381,6 +381,9 @@ void handle_joydown(int joystick, int button)
void handle_mousedown(int mouse, int button)
{
+ if (!current_io) {
+ return;
+ }
if (current_io->mouse_mode == MOUSE_CAPTURE && !current_io->mouse_captured) {
current_io->mouse_captured = 1;
render_relative_mouse(1);
@@ -537,7 +540,7 @@ void handle_binding_up(keybinding * binding)
}
case UI_EXIT:
#ifndef DISABLE_NUKLEAR
- if (is_nuklear_active) {
+ if (is_nuklear_active()) {
show_pause_menu();
} else {
#endif