hedgewars/uStore.pas
changeset 208 a049157d673a
parent 206 32fa6282efe2
child 281 5b483aa9f2ab
--- a/hedgewars/uStore.pas	Fri Oct 27 19:37:59 2006 +0000
+++ b/hedgewars/uStore.pas	Fri Oct 27 22:07:38 2006 +0000
@@ -376,7 +376,11 @@
 clr.g:= $FF;
 clr.b:= $FF;
 tmpsurf:= TTF_RenderUTF8_Solid(Fontz[Font].Handle, PChar(s), clr.value);
-SDLTry(tmpsurf <> nil, true);
+if tmpsurf = nil then
+   begin
+   SetKB(1);
+   exit
+   end;
 SDL_UpperBlit(tmpsurf, nil, Surface, @r);
 SDL_FreeSurface(tmpsurf)
 end;