- got rid of FNameNoInit and made the default constructor of FName non-initializing.
This setup has been a constant source of problems so now I reviewed all uses of FName to make sure that everything that needs to be initialized is done manually. This also merges the player_t constructor into the class definition as default values.
This commit is contained in:
parent
34f2d8f310
commit
fad406c4c9
47 changed files with 185 additions and 309 deletions
|
|
@ -657,11 +657,9 @@ static void ParseListMenu(FScanner &sc)
|
|||
|
||||
static void ParseOptionValue(FScanner &sc)
|
||||
{
|
||||
FName optname;
|
||||
|
||||
FOptionValues *val = new FOptionValues;
|
||||
sc.MustGetString();
|
||||
optname = sc.String;
|
||||
FName optname = sc.String;
|
||||
sc.MustGetStringName("{");
|
||||
while (!sc.CheckString("}"))
|
||||
{
|
||||
|
|
@ -689,11 +687,9 @@ static void ParseOptionValue(FScanner &sc)
|
|||
|
||||
static void ParseOptionString(FScanner &sc)
|
||||
{
|
||||
FName optname;
|
||||
|
||||
FOptionValues *val = new FOptionValues;
|
||||
sc.MustGetString();
|
||||
optname = sc.String;
|
||||
FName optname = sc.String;
|
||||
sc.MustGetStringName("{");
|
||||
while (!sc.CheckString("}"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue