summaryrefslogtreecommitdiff
path: root/prototypes.h
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2014-10-26 18:36:55 +0000
committerOlivier Gayot <duskcoder@gmail.com>2014-10-26 18:37:14 +0000
commitbdedea6d43bd8656548fff341093146a0e131d32 (patch)
tree78a75b91d5d49ec165a084cdd2a4d468ed113a0f /prototypes.h
parent23a4cc4a95ee5b2a2768856253028fae11863e17 (diff)
fix segmentation fault issued at startup
we used to try to open an image whose filename is wrong. Since we do not check the return of this function, the program crashes. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'prototypes.h')
-rw-r--r--prototypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes.h b/prototypes.h
index 3957017..2634be1 100644
--- a/prototypes.h
+++ b/prototypes.h
@@ -12,7 +12,7 @@ int Fjouer (SURFACES *surfaces, POSITIONS *positions, PERSONNAGES persos[],ENNEM
void Fblitterpersos (SURFACES *surfaces, POSITIONS *positions, PERSONNAGES persos[]);
void Finitialiserpositionspersos (SURFACES *surfaces,POSITIONS *positions);
void Finitialisersurfaces (SURFACES *surfaces);
-void Fchargerimages (SURFACES *surfaces);
+int Fchargerimages (SURFACES *surfaces);
void Fdechargerimages (SURFACES *surfaces);
void inverse(int *bool);
void Finitialiserpositions (POSITIONS *positions, SURFACES *surfaces);