How did this end up wrong?

This commit is contained in:
Randy Heit 2016-04-03 20:25:07 -05:00
parent 17972b5d06
commit 77f9643c8f

View file

@ -585,7 +585,7 @@ static void ParseUserVariable (FScanner &sc, PSymbolTable *symt, PClassActor *cl
sc.MustGetToken(';'); sc.MustGetToken(';');
PField *sym = cls->AddField(symname, type, 0); PField *sym = cls->AddField(symname, type, 0);
if (cls == NULL) if (sym == NULL)
{ {
sc.ScriptMessage ("'%s' is already defined in '%s'.", sc.ScriptMessage ("'%s' is already defined in '%s'.",
symname.GetChars(), cls ? cls->TypeName.GetChars() : "Global"); symname.GetChars(), cls ? cls->TypeName.GetChars() : "Global");