Add assert on LoadingText texture value 0.9.23
authorunc0rr
Wed, 17 Jan 2018 00:59:39 +0100
branch0.9.23
changeset 12895 c77d75dafe2e
parent 12894 ff54aca22bb5
child 13164 eefd6d066768
child 13316 dd1435f1a28c
child 14362 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