diff options
author | P. 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) |
commit | e7426afc020a122ae45975fe076ba1a50d94281c (patch) | |
tree | cfc1f6716e3bdcc607fd9828bb8dfb36482799ba | |
parent | e4ee5e9bc0f441a646befa8196c52590473ce6c4 (diff) | |
download | dodge-balls-e7426afc020a122ae45975fe076ba1a50d94281c.zip dodge-balls-e7426afc020a122ae45975fe076ba1a50d94281c.tar.gz dodge-balls-e7426afc020a122ae45975fe076ba1a50d94281c.tar.bz2 |
help: Fix return statements
-rw-r--r-- | src/help.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |