changeset 2705 | 2b5625c4ec16 |
parent 2699 | 249adefa9c1c |
child 2715 | 0e4e0db79e2a |
--- a/hedgewars/uMisc.pas Sun Jan 24 07:37:00 2010 +0000 +++ b/hedgewars/uMisc.pas Sun Jan 24 13:37:03 2010 +0000 @@ -530,9 +530,10 @@ begin convertedSurf:= SDL_ConvertSurface(tmpsurf, @conversionFormat, SDL_SWSURFACE); SDL_FreeSurface(tmpsurf); - doSurfaceConversion:= convertedSurf - end - else doSurfaceConversion:= tmpsurf; + exit(convertedSurf); + end; + + exit(tmpsurf); end; function endian(independent: LongWord): LongWord;