summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-19 11:34:05 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-19 11:34:05 (EDT)
commite7426afc020a122ae45975fe076ba1a50d94281c (patch)
treecfc1f6716e3bdcc607fd9828bb8dfb36482799ba
parente4ee5e9bc0f441a646befa8196c52590473ce6c4 (diff)
downloaddodge-balls-e7426afc020a122ae45975fe076ba1a50d94281c.zip
dodge-balls-e7426afc020a122ae45975fe076ba1a50d94281c.tar.gz
dodge-balls-e7426afc020a122ae45975fe076ba1a50d94281c.tar.bz2
help: Fix return statements
-rw-r--r--src/help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/help.c b/src/help.c
index eed28c6..5cdd40f 100644
--- a/src/help.c
+++ b/src/help.c
@@ -111,7 +111,7 @@ db_help(void)
if (font == NULL) {
db_err("Failed to open font (%s)", TTF_GetError());
free(font_path);
- return;
+ return -1;
}
color.r = 0x00;
@@ -123,7 +123,7 @@ db_help(void)
592);
if (surface == NULL) {
db_err("Failed to create surface (%s)", TTF_GetError());
- return;
+ return -1;
}
TTF_CloseFont(font);
@@ -131,7 +131,7 @@ db_help(void)
texture = SDL_CreateTextureFromSurface(renderer, surface);
if (texture == NULL) {
db_err("Failed to create texture (%s)", SDL_GetError());
- return;
+ return -1;
}
text_src_rect.x = 0;