summary refs log tree commit diff
path: root/cards.c
diff options
context:
space:
mode:
Diffstat (limited to 'cards.c')
-rw-r--r--cards.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cards.c b/cards.c
index 2e8ab20..35660ad 100644
--- a/cards.c
+++ b/cards.c
@@ -131,7 +131,7 @@ struct Cards *Cards_Load(struct SDL_RWops *rw) {
 		SDL_ReadLE32(rw); // reserved
 
 		id &= 0x7FFF;
-		if (id >= Cards_CardLen) continue;
+		if (id >= Cards_Count) continue;
 
 		Sint64 next = SDL_RWtell(rw);
 		if (next < 0) goto fail;
@@ -173,7 +173,7 @@ fail:
 }
 
 void Cards_Free(struct Cards *cards) {
-	for (int i = 0; i < Cards_CardLen; ++i) {
+	for (int i = 0; i < Cards_Count; ++i) {
 		if (!cards->surfaces[i]) continue;
 		SDL_FreeSurface(cards->surfaces[i]);
 	}
13Add gzputc.3June McEnroe 2018-11-13Add gzgets.3June McEnroe 2018-11-13Add gzputs.3June McEnroe 2018-11-13Add gzprintf.3June McEnroe 2018-11-13Add gzfwrite.3June McEnroe 2018-11-13Add gzwrite.3June McEnroe 2018-11-12Add gzfread.3June McEnroe 2018-11-12Add gzread.3June McEnroe 2018-11-12Add gzsetparams.3June McEnroe 2018-11-12Add gzbuffer.3June McEnroe 2018-11-12Add gzdopen to gzopen.3June McEnroe 2018-11-12Add gzopen.3June McEnroe 2018-11-12Add inflateBackEnd.3June McEnroe 2018-11-12Add inflateBack.3June McEnroe 2018-11-12Add inflateBackInit.3June McEnroe 2018-11-11Add inflateGetHeader.3June McEnroe 2018-11-11Add inflateMark.3June McEnroe 2018-11-11Add inflatePrime.3June McEnroe 2018-11-11Add inflateReset.3June McEnroe 2018-11-11Add inflateCopy.3June McEnroe 2018-11-11Add inflateSync.3June McEnroe 2018-11-11Add inflateGetDictionary.3June McEnroe 2018-11-11Add inflateSetDictionary.3June McEnroe 2018-11-11Add inflateInit2.3June McEnroe