diff --git a/Source/script.cpp b/Source/script.cpp index 046f00bc..2bfd20f4 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -5611,7 +5611,7 @@ int CEXEBuild::do_add_file(const char *lgss, int attrib, int recurse, int linecn } // Will auto-CloseHandle hFile - ResourceManager hFileManager(fd); + ResourceManager hFileManager(hFile); len = GetFileSize(hFile, NULL); if (len && !mmap.setfile(hFile, len))