Fixed DECORATE scope for duplicates

This commit is contained in:
ZZYZX 2017-03-12 05:16:44 +02:00 committed by Christoph Oelckers
parent bd889cc8f1
commit 91e83bf3c6
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ PClassActor *DecoDerivedClass(const FScriptPosition &sc, PClassActor *parent, FN
sc.Message(MSG_FATAL, "Tried to define class '%s' more than twice in the same file.", typeName.GetChars());
}
}
else
if (type != nullptr)
{
// [ZZ] DECORATE classes are always play
type->ObjectFlags = FScopeBarrier::ChangeSideInObjectFlags(type->ObjectFlags, FScopeBarrier::Side_Play);