Fix bug in 4f5d8fd
John Smith

John Smith commited on 2022-301 23:28:16
Showing 1 changed files, with 4 additions and 3 deletions.

... ...
@@ -386,9 +386,7 @@ elseif action == "t" then
386 386
             ip = { a, b }
387 387
         end
388 388
     end
389
-    if not ip then
390
-        io.write("Bad prompt index (must be cardnum:promptnum)\n")
391
-    end
389
+    if ip then
392 390
         deck = loader.load(deckfname, config)
393 391
         if deck then
394 392
             deck[ip[1]][ip[2]].delay = -deck[ip[1]][ip[2]].delay
... ...
@@ -396,6 +394,9 @@ elseif action == "t" then
396 394
         else
397 395
             io.write("Failed to load deck\n")
398 396
         end
397
+    else
398
+        io.write("Bad prompt index (must be cardnum:promptnum)\n")
399
+    end
399 400
 else
400 401
     io.write "unreachable"
401 402
 end
402 403