[aisleriot] Use list? here
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] Use list? here
- Date: Thu, 14 Apr 2011 11:57:17 +0000 (UTC)
commit 60b7889d5a2c1e6e76306645936a7dcbf1732553
Author: Christian Persch <chpe gnome org>
Date: Thu Apr 14 13:50:02 2011 +0200
Use list? here
src/game.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/game.c b/src/game.c
index 673ade7..1485b12 100644
--- a/src/game.c
+++ b/src/game.c
@@ -564,7 +564,7 @@ cscmi_slot_set_cards (ArSlot *slot,
guint8 *data = NULL;
guint i, n_cards = 0;
- if (scm_is_true (cards)) {
+ if (scm_is_true (scm_list_p (cards))) {
for (list_el = cards; list_el != SCM_EOL; list_el = SCM_CDR (list_el)) {
++n_cards;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]