mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 15:21:44 +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:
|
||||
pack = FS_LoadPAK(path);
|
||||
|
||||
if (pack)
|
||||
{
|
||||
pack->isProtectedPak = true;
|
||||
}
|
||||
|
||||
break;
|
||||
case PK3:
|
||||
pack = FS_LoadPK3(path);
|
||||
|
||||
if (pack)
|
||||
{
|
||||
pack->isProtectedPak = false;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue