Better syntax

This commit is contained in:
Layla Marchant 2020-07-27 12:15:35 -04:00
parent cf7a82515d
commit adc85f1bec
1 changed files with 3 additions and 1 deletions

View File

@ -435,6 +435,8 @@ atexit();
*/ */
void engine_cleanup() void engine_cleanup()
{ {
int i;
gfx_free(); gfx_free();
SDL_FreeSurface(gfx_background); SDL_FreeSurface(gfx_background);
SDL_FreeSurface(gfx_unscaledBackground); SDL_FreeSurface(gfx_unscaledBackground);
@ -445,7 +447,7 @@ void engine_cleanup()
free(engine.collectableHead); free(engine.collectableHead);
free(screen_bufferHead); free(screen_bufferHead);
for (int i = 0 ; i < FONT_MAX ; i++) for (i=0 ; i<FONT_MAX ; i++)
{ {
if (gfx_fontSprites[i] != NULL) if (gfx_fontSprites[i] != NULL)
SDL_FreeSurface(gfx_fontSprites[i]); SDL_FreeSurface(gfx_fontSprites[i]);