summaryrefslogtreecommitdiff
path: root/blits.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 02:10:59 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 02:10:59 +0100
commit6d8a9ac6c08e414e8ebb57a6a2ef9b4779d599a7 (patch)
tree5cc83a3f910ea2b84941a7d5c49c245bcfab84e5 /blits.c
parenta24acb373d67048daa7e68e72418a5d6ef5841dd (diff)
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 <duskcoder@gmail.com>
Diffstat (limited to 'blits.c')
-rw-r--r--blits.c2
1 files changed, 1 insertions, 1 deletions
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);