mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Fix last commit, pack can be NULL.
This commit is contained in:
parent
5ddab0e4bf
commit
29bb6e5c6c
1 changed files with 11 additions and 2 deletions
|
@ -1438,12 +1438,21 @@ FS_AddDirToSearchPath(char *dir, qboolean create) {
|
||||||
{
|
{
|
||||||
case PAK:
|
case PAK:
|
||||||
pack = FS_LoadPAK(path);
|
pack = FS_LoadPAK(path);
|
||||||
pack->isProtectedPak = true;
|
|
||||||
|
if (pack)
|
||||||
|
{
|
||||||
|
pack->isProtectedPak = true;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PK3:
|
case PK3:
|
||||||
pack = FS_LoadPK3(path);
|
pack = FS_LoadPK3(path);
|
||||||
pack->isProtectedPak = false;
|
|
||||||
|
if (pack)
|
||||||
|
{
|
||||||
|
pack->isProtectedPak = false;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue