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++;