From 6e86aa288afc13934e3879e1c1cc005c31a7394b Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 17 Mar 2012 19:39:26 +0000 Subject: [PATCH] commandline: correct autodetect_method check --- desmume/src/commandline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/commandline.cpp b/desmume/src/commandline.cpp index e083501db..fad378e3a 100644 --- a/desmume/src/commandline.cpp +++ b/desmume/src/commandline.cpp @@ -217,7 +217,7 @@ bool CommandLine::validate() g_printerr("Cannot specify both cflash and gbaslot rom (both occupy SLOT-2)\n"); } - if ((autodetect_method != -1) && (autodetect_method < 0) || (autodetect_method > 1)) { + if (autodetect_method < -1 || autodetect_method > 1) { g_printerr("Invalid autodetect save method (0 - internal, 1 - from database)\n"); }