Do conditional check before calling function

This commit is contained in:
twinaphex 2016-11-27 15:43:00 +01:00
parent 5b2c4db656
commit 42a3ec2cf7

View File

@ -408,7 +408,8 @@ void input_poll(void)
}
#ifdef HAVE_OVERLAY
input_poll_overlay(overlay_ptr, settings->input.overlay_opacity);
if (overlay_ptr)
input_poll_overlay(overlay_ptr, settings->input.overlay_opacity);
#endif
#ifdef HAVE_COMMAND