[aisleriot/gnome-3-4] api.scm: Use correct arguments to list-tail.
- From: Christian Persch <chpe src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [aisleriot/gnome-3-4] api.scm: Use correct arguments to list-tail.
 
- Date: Mon, 28 May 2012 15:15:32 +0000 (UTC)
 
commit 864985519461f58d47f2205a9f7baeac6c729a1b
Author: Vincent Povirk <madewokherd gmail com>
Date:   Mon May 28 09:29:59 2012 -0500
    api.scm: Use correct arguments to list-tail.
    
    For bug 676924.
 games/api.scm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/games/api.scm b/games/api.scm
index f38ad1f..6249fb7 100644
--- a/games/api.scm
+++ b/games/api.scm
@@ -545,7 +545,7 @@
   (add-cards! end-slot cards))
 
 (define-public (remove-n-cards slot-id n)
-  (set-cards! slot-id (list-tail n (get-cards slot-id))))
+  (set-cards! slot-id (list-tail (get-cards slot-id) n)))
 
 (define-public (deal-cards-from-deck deck slot-list)
   (if (not (null? slot-list))
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]