X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Fshared%2FWADEDITOR_dfwad.pas;h=0fe16f51e1dc7c33d74bc53ee7a7be62d8c0162d;hp=2bbc03a3a031397b198d21cd1793574c6ca9b612;hb=d8d64dd9e4ca2f0fbedce9735a22b0ed5f8ebd53;hpb=d2444a19bbf470c01ca78203be7e4b62665dd433 diff --git a/src/shared/WADEDITOR_dfwad.pas b/src/shared/WADEDITOR_dfwad.pas index 2bbc03a..0fe16f5 100644 --- a/src/shared/WADEDITOR_dfwad.pas +++ b/src/shared/WADEDITOR_dfwad.pas @@ -645,7 +645,7 @@ implementation begin if sec = nil then sec := InsertSectionRAW(''); - if res = nil then + if sec = nil then raise Exception.Create('Failed to create root section'); res := InsertFileInfoS(sec, name, offset, csize, -1, nil); if res = nil then