From 20f29ab8083e00414a8d87d5a1850ffaa4af81e2 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 3 Feb 2019 12:33:06 +0200 Subject: [PATCH] - fixed erroneous removal of property flag members https://forum.zdoom.org/viewtopic.php?t=63520 --- src/scripting/symbols.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripting/symbols.cpp b/src/scripting/symbols.cpp index a89248937..64a52039f 100644 --- a/src/scripting/symbols.cpp +++ b/src/scripting/symbols.cpp @@ -589,7 +589,9 @@ void RemoveUnusedSymbols() PSymbolTable::MapType::Pair *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); count++;