From b29c03dd3b933d05e2f569acafeb7405971eb9e2 Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Fri, 20 Feb 2015 17:18:43 -0500 Subject: Added view for all wonders --- data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data.c') diff --git a/data.c b/data.c index 8be97a9..eb499cc 100644 --- a/data.c +++ b/data.c @@ -212,15 +212,16 @@ int data_canafford(int p, int *cost) int* data_getbuilt(int p) { - int *ret = get_intarray(42); + int *ret = get_intarray(43); int type, e, c; int i = 0; for(type = 0; type <= 7; type++) for(e = 0; e < 3; e++) for(c = 0; c < 7; c++) - if(cards_gettype(e, player[p][e][c]) == type) { + if(player[p][e][c] != -1 && cards_gettype(e, player[p][e][c]) == type) { ret[i++] = e; ret[i++] = player[p][e][c]; } + ret[i] = -1; //Cap it here return ret; } -- cgit