Skip to content

Commit

Permalink
BUG - fix compiler errors/warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscon committed Nov 15, 2023
1 parent 4a5521d commit c933658
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hud_262.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "menu.h"
#include "image.h"

qbool CachePic_RemoveByPic(mpic_t* pic);

static char *hud262_load_buff = NULL;

extern cvar_t cl_hud;
Expand Down Expand Up @@ -168,10 +170,12 @@ void Hud_Add_f(void)
}
else if (!strcasecmp(a2, "img")) {
char* pic_path = Q_strdup(a3);

mpic_t* tmp_pic;
if (pic_path && strlen(pic_path) > 0) {
// Try loading the pic.
if (!(tmp_pic = Draw_CachePicSafe(pic_path, false, true))) {
tmp_pic = Draw_CachePicSafe(pic_path, false, true);
if (!tmp_pic){
Com_Printf("Couldn't load picture %s for '%s'\n", pic_path, a2);
return;
}
Expand Down

0 comments on commit c933658

Please sign in to comment.