summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rwxr-xr-xsrc/image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index 3726167..a7c2261 100755
--- a/src/image.c
+++ b/src/image.c
@@ -38,8 +38,11 @@ static SDL_Surface *loadImage(const char *filename, int alpha)
char str[STR_PATH_SIZE];
+
sprintf(str, PATH_IMAGE "%s", filename);
+ accessExistFile(str);
+
if( ( tmp = IMG_Load(str) ) == NULL )
{
fprintf(stderr, "%s\n", SDL_GetError());