mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- do not delete duplicate PFields - they are better be destroyed and left to the GC.
- removed two duplicate entries to the flag table.
This commit is contained in:
parent
407345668a
commit
8ae7aae14a
2 changed files with 1 additions and 3 deletions
|
@ -2254,7 +2254,7 @@ PField *PStruct::AddNativeField(FName name, PType *type, size_t address, DWORD f
|
|||
|
||||
if (Symbols.AddSymbol(field) == nullptr)
|
||||
{ // name is already in use
|
||||
delete field;
|
||||
field->Destroy();
|
||||
return nullptr;
|
||||
}
|
||||
Fields.Push(field);
|
||||
|
|
|
@ -68,14 +68,12 @@ FFlagDef InternalActorFlagDefs[]=
|
|||
DEFINE_FLAG(MF, UNMORPHED, AActor, flags),
|
||||
DEFINE_FLAG(MF2, FLY, AActor, flags2),
|
||||
DEFINE_FLAG(MF2, ONMOBJ, AActor, flags2),
|
||||
DEFINE_FLAG(MF2, DONTTRANSLATE, AActor, flags2),
|
||||
DEFINE_FLAG(MF2, ARGSDEFINED, AActor, flags2),
|
||||
DEFINE_FLAG(MF3, NOSIGHTCHECK, AActor, flags3),
|
||||
DEFINE_FLAG(MF3, CRASHED, AActor, flags3),
|
||||
DEFINE_FLAG(MF3, WARNBOT, AActor, flags3),
|
||||
DEFINE_FLAG(MF3, HUNTPLAYERS, AActor, flags3),
|
||||
DEFINE_FLAG(MF4, NOHATEPLAYERS, AActor, flags4),
|
||||
DEFINE_FLAG(MF4, NOSKIN, AActor, flags4),
|
||||
DEFINE_FLAG(MF4, SCROLLMOVE, AActor, flags4),
|
||||
DEFINE_FLAG(MF4, VFRICTION, AActor, flags4),
|
||||
DEFINE_FLAG(MF4, BOSSSPAWNED, AActor, flags4),
|
||||
|
|
Loading…
Reference in a new issue