Get rid of dereference before null check warning

This commit is contained in:
twinaphex 2016-06-29 12:19:23 +02:00
parent 397c8acd51
commit b8ac629fbf

View File

@ -198,7 +198,7 @@ static void input_overlay_load_active(input_overlay_t *ol, float opacity)
if (!ol)
return;
if (ol->iface->load)
if (ol->iface && ol->iface->load)
ol->iface->load(ol->iface_data, ol->active->load_images,
ol->active->load_images_size);