commandline: correct autodetect_method check

This commit is contained in:
riccardom 2012-03-17 19:39:26 +00:00
parent 7f6e9074f4
commit 6e86aa288a
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}