Generalize FxArrayElement to work with all numeric elements (not just 32-bit ints)

This commit is contained in:
Randy Heit 2016-04-03 16:07:51 -05:00
commit 3357af32e5
2 changed files with 23 additions and 10 deletions

View file

@ -588,7 +588,6 @@ static void ParseUserVariable (FScanner &sc, PSymbolTable *symt, PClassActor *cl
sym->Offset = cls->Extend(type);
if (symt->AddSymbol(sym) == NULL)
{
delete sym;
sc.ScriptMessage ("'%s' is already defined in '%s'.",
symname.GetChars(), cls ? cls->TypeName.GetChars() : "Global");
FScriptPosition::ErrorCounter++;