mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-15 06:33:12 +00:00
restrict internal structs to gzdoom.pk3
This commit is contained in:
parent
93c8af32ca
commit
02523b1f90
1 changed files with 8 additions and 1 deletions
|
@ -760,7 +760,14 @@ void ZCCCompiler::CreateStructTypes()
|
|||
|
||||
if (s->strct->Flags & ZCC_Internal)
|
||||
{
|
||||
s->strct->Type->TypeInternal = true;
|
||||
if(fileSystem.GetFileContainer(Lump) == 0)
|
||||
{
|
||||
s->strct->Type->TypeInternal = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Error(s->strct, "Internal structs are only allowed in the root pk3");
|
||||
}
|
||||
}
|
||||
|
||||
auto &sf = s->Type()->ScopeFlags;
|
||||
|
|
Loading…
Reference in a new issue