From 6d8a9ac6c08e414e8ebb57a6a2ef9b4779d599a7 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 02:10:59 +0100 Subject: fix invalid field set to NULL the wrong surface was set to NULL after being freed. It could result in an crash if it is not fixed. Signed-off-by: Olivier Gayot --- blits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blits.c') diff --git a/blits.c b/blits.c index e17140f..ea57630 100644 --- a/blits.c +++ b/blits.c @@ -346,7 +346,7 @@ void Fblitterpmcible (SURFACES *surfaces,POSITIONS *positions,ENNEMIS ennemis[], if (surfaces->Ppmcible != NULL) { SDL_FreeSurface (surfaces->Ppmcible); - surfaces->Ppvcible=NULL; + surfaces->Ppmcible=NULL; } sprintf (chaine,"%d/%d",ennemis[selection].pm,ennemis[selection].pminitiaux); police=TTF_OpenFont ("TIMESBI.TTF",18); -- cgit v1.2.3