From bdedea6d43bd8656548fff341093146a0e131d32 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 26 Oct 2014 18:36:55 +0000 Subject: 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 --- prototypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prototypes.h') 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); -- cgit v1.2.3