summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 1d3b6dc..86b0df4 100644
--- a/dump.c
+++ b/dump.c
@@ -43,7 +43,8 @@ int main(int argc, char *argv[]) {
 		if (!cards->surfaces[i]) continue;
 		char name[sizeof("00.bmp")];
 		snprintf(name, sizeof(name), "%02d.bmp", i);
-		SDL_SaveBMP(cards->surfaces[i], name);
+		int error = SDL_SaveBMP(cards->surfaces[i], name);
+		if (error) return fail("SDL_SaveBMP");
 	}
 
 	Cards_Free(cards);