about summary refs log tree commit diff
path: root/dump.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-15 15:58:29 -0400
committerJune McEnroe <june@causal.agency>2019-03-15 15:58:29 -0400
commit031cbc6eb23bf5b58f0b3c3cba5ed26cc52cf58e (patch)
tree339f9aa8d1d5e46e29a3a342cc1f1e76a0a156c8 /dump.c
parentTurn on -Wpedantic (diff)
downloadcards-031cbc6eb23bf5b58f0b3c3cba5ed26cc52cf58e.tar.gz
cards-031cbc6eb23bf5b58f0b3c3cba5ed26cc52cf58e.zip
Simplify Cards constants
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 86b0df4..f52a24c 100644
--- a/dump.c
+++ b/dump.c
@@ -39,7 +39,7 @@ int main(int argc, char *argv[]) {
 	if (!cards) return fail("Cards_Load");
 	SDL_RWclose(rw);
 
-	for (int i = 0; i < Cards_CardLen; ++i) {
+	for (int i = 0; i < Cards_Count; ++i) {
 		if (!cards->surfaces[i]) continue;
 		char name[sizeof("00.bmp")];
 		snprintf(name, sizeof(name), "%02d.bmp", i);