diff -r c265a3e6f6da -r 480ea997036b hedgewars/uLandObjects.pas --- a/hedgewars/uLandObjects.pas Wed Jul 11 21:56:30 2018 +0200 +++ b/hedgewars/uLandObjects.pas Thu Jul 12 14:41:24 2018 +0200 @@ -731,7 +731,8 @@ s:= cPathz[ptCurrTheme] + '/' + cThemeCFGFilename; WriteLnToConsole('Reading objects info...'); f:= pfsOpenRead(s); -if checkFails(f <> nil, 'Bad data or cannot access file ' + s, true) then exit; +if (f = nil) then + OutError('Error loading theme. File could not be opened: ' + s, true); ThemeObjects.Count:= 0; SprayObjects.Count:= 0;