(event_command) If cmd is EVENT_CMD_NONE or some other value, return false

This commit is contained in:
twinaphex 2015-04-20 19:08:58 +02:00
parent 510d8a0a2f
commit f3875924e5

View File

@ -1615,8 +1615,12 @@ bool event_command(enum event_command cmd)
event_set_volume(-0.5f);
break;
case EVENT_CMD_NONE:
break;
default:
goto error;
}
return true;
error:
return false;
}