Browse Source

Limit display to total devices to avoid repeating when selecting devices.

Con Kolivas 14 years ago
parent
commit
6ab2966035
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -1923,7 +1923,7 @@ static void reinit_thread(int thr_id)
 static bool active_device(int thr_id)
 {
 	if (thr_id < gpu_threads) {
-		if (thr_id > nDevs)
+		if (thr_id >= total_devices)
 			return false;
 		if (!gpu_devices[dev_from_id(thr_id)])
 			return false;