- fixed erroneous removal of property flag members

https://forum.zdoom.org/viewtopic.php?t=63520
This commit is contained in:
alexey.lysiuk 2019-02-03 12:33:06 +02:00
parent 25071e26e5
commit 20f29ab808

View file

@ -589,7 +589,9 @@ void RemoveUnusedSymbols()
PSymbolTable::MapType::Pair *pair; PSymbolTable::MapType::Pair *pair;
while (it.NextPair(pair)) while (it.NextPair(pair))
{ {
if (!pair->Value->IsKindOf(RUNTIME_CLASS(PField)) && !pair->Value->IsKindOf(RUNTIME_CLASS(PFunction))) if ( !pair->Value->IsKindOf(RUNTIME_CLASS(PField))
&& !pair->Value->IsKindOf(RUNTIME_CLASS(PFunction))
&& !pair->Value->IsKindOf(RUNTIME_CLASS(PPropFlag)) )
{ {
ty->Symbols.RemoveSymbol(pair->Value); ty->Symbols.RemoveSymbol(pair->Value);
count++; count++;