mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
How did this end up wrong?
This commit is contained in:
parent
17972b5d06
commit
77f9643c8f
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ static void ParseUserVariable (FScanner &sc, PSymbolTable *symt, PClassActor *cl
|
|||
sc.MustGetToken(';');
|
||||
|
||||
PField *sym = cls->AddField(symname, type, 0);
|
||||
if (cls == NULL)
|
||||
if (sym == NULL)
|
||||
{
|
||||
sc.ScriptMessage ("'%s' is already defined in '%s'.",
|
||||
symname.GetChars(), cls ? cls->TypeName.GetChars() : "Global");
|
||||
|
|
Loading…
Reference in a new issue