diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 02:10:59 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 02:10:59 +0100 |
commit | 6d8a9ac6c08e414e8ebb57a6a2ef9b4779d599a7 (patch) | |
tree | 5cc83a3f910ea2b84941a7d5c49c245bcfab84e5 /blits.c | |
parent | a24acb373d67048daa7e68e72418a5d6ef5841dd (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |