From eea2a9f7c490308bf497d1a8ecc7e233a55ea8b5 Mon Sep 17 00:00:00 2001 From: Robert Jordan Date: Sat, 20 Jun 2015 17:39:40 -0400 Subject: [PATCH] Fixed console open command --- src/interface/console.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/interface/console.c b/src/interface/console.c index 2842c63504..51265e9eeb 100644 --- a/src/interface/console.c +++ b/src/interface/console.c @@ -318,14 +318,14 @@ void console_printf(const char *format, ...) int console_parse_int(const char *src, bool *valid) { char *end; int value; - value = strtol(src, &end, 10); *valid &= (*end == '\0'); + value = strtol(src, &end, 10); *valid = (*end == '\0'); return value; } double console_parse_double(const char *src, bool *valid) { char *end; double value; - value = strtod(src, &end); *valid &= (*end == '\0'); + value = strtod(src, &end); *valid = (*end == '\0'); return value; } @@ -1030,7 +1030,9 @@ void console_execute_silent(const char *src) static bool invalidArguments(bool *invalid, bool arguments) { - if (!arguments) + if (!arguments) { *invalid = true; - return !invalid; + return false; + } + return true; } \ No newline at end of file