hedgewars/uStore.pas
changeset 11544 c22d292e7266
parent 11537 bf86c6cb9341
child 11827 4600dcb9db4f
--- a/hedgewars/uStore.pas	Mon Feb 08 14:58:36 2016 +0300
+++ b/hedgewars/uStore.pas	Tue Feb 09 14:40:06 2016 +0300
@@ -396,6 +396,7 @@
            and ((cCloudsNumber > 0) or (ii <> sprCloud))
            and ((vobCount > 0) or (ii <> sprFlake))
            and (savesurf or (not cOnlyStats)) // in stats-only only load those which are needed later
+           and allOK
             then
             begin
             if reload then
@@ -454,7 +455,7 @@
                 Surface:= nil
         end;
 
-if not cOnlyStats then
+if (not cOnlyStats) and allOK then
     begin
     WriteNames(fnt16);