Add assert on LoadingText texture value 0.9.23
authorunc0rr
Wed, 17 Jan 2018 00:59:39 +0100
branch0.9.23
changeset 12900 c77d75dafe2e
parent 12899 ff54aca22bb5
child 13169 eefd6d066768
child 13321 dd1435f1a28c
child 14367 bdf5840863c6
Add assert on LoadingText texture value
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Wed Jan 17 00:32:34 2018 +0100
+++ b/hedgewars/uStore.pas	Wed Jan 17 00:59:39 2018 +0100
@@ -815,7 +815,7 @@
         {$ENDIF}
         end;
 
-    if checkFails(ProgrTex <> nil, 'Error - Progress Texure is nil!', true) then exit;
+    if checkFails((ProgrTex <> nil) and (LoadingText <> nil), 'Error - Progress or Loading Texture is nil!', true) then exit;
 
     RenderClear();
     if Step < numsquares then