GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-editor.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2444a1
)
dfwad: fix use before assignment
author
DeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 29 Sep 2023 11:38:25 +0000
(14:38 +0300)
committer
DeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 29 Sep 2023 11:38:25 +0000
(14:38 +0300)
src/shared/WADEDITOR_dfwad.pas
patch
|
blob
|
history
diff --git
a/src/shared/WADEDITOR_dfwad.pas
b/src/shared/WADEDITOR_dfwad.pas
index 2bbc03a3a031397b198d21cd1793574c6ca9b612..0fe16f51e1dc7c33d74bc53ee7a7be62d8c0162d 100644
(file)
--- 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
DEADSOFTWARE 2012-2025