From bfd69d1baa0efab609fda43a61e7b7378dd43998 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 11 Jan 2014 12:16:23 +0100 Subject: [PATCH] Small cleanup for HAVE_COMMAND. --- driver_funcs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver_funcs.h b/driver_funcs.h index 54f42a372c..bef352ecbc 100644 --- a/driver_funcs.h +++ b/driver_funcs.h @@ -66,8 +66,8 @@ static inline bool input_key_pressed_func(int key) #endif #ifdef HAVE_COMMAND - if (!ret && driver.command) - ret = rarch_cmd_get(driver.command, key); + if (driver.command) + ret = ret || rarch_cmd_get(driver.command, key); #endif return ret;