- Don't record pointers to OptionValues outside of the OptionValues table, so that they can be redefined.
SVN r3675 (trunk)
This commit is contained in:
parent
9e31ff0799
commit
36d348dba6
3 changed files with 39 additions and 38 deletions
|
|
@ -509,7 +509,7 @@ static void ParseOptionValue(FScanner &sc)
|
|||
FOptionValues **pOld = OptionValues.CheckKey(optname);
|
||||
if (pOld != NULL && *pOld != NULL)
|
||||
{
|
||||
sc.ScriptError("Redefinition of option value set '%s'", optname.GetChars());
|
||||
delete *pOld;
|
||||
}
|
||||
OptionValues[optname] = val;
|
||||
}
|
||||
|
|
@ -542,7 +542,7 @@ static void ParseOptionString(FScanner &sc)
|
|||
FOptionValues **pOld = OptionValues.CheckKey(optname);
|
||||
if (pOld != NULL && *pOld != NULL)
|
||||
{
|
||||
sc.ScriptError("Redefinition of option value set '%s'", optname.GetChars());
|
||||
delete *pOld;
|
||||
}
|
||||
OptionValues[optname] = val;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue