mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
Only try to autoupdate the fmf file if we know which file to actually update... (should fix a crash).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5745 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
22ea0b87d7
commit
ac4e7c396c
1 changed files with 1 additions and 1 deletions
|
@ -5323,7 +5323,7 @@ static void FS_BeginNextPackageDownload(ftemanifest_t *man)
|
|||
|
||||
if (man == fs_manifest && man->updateurl && !man->blockupdate)
|
||||
{
|
||||
vfsfile_t *f = FS_OpenVFS(man->filename, "ab", FS_SYSTEM); //this is JUST to make sure its writable. don't bother updating it if it isn't.
|
||||
vfsfile_t *f = man->filename?FS_OpenVFS(man->filename, "ab", FS_SYSTEM):NULL; //this is JUST to make sure its writable. don't bother updating it if it isn't.
|
||||
man->blockupdate = true;
|
||||
if (f)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue