- 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:
Christoph Oelckers 2018-08-19 01:14:15 +02:00
commit fad406c4c9
47 changed files with 185 additions and 309 deletions

View file

@ -314,7 +314,7 @@ void DSeqNode::Serialize(FSerializer &arc)
{
int seqOffset;
unsigned int i;
FName seqName;
FName seqName = NAME_None;
int delayTics = 0;
FSoundID id;
float volume;
@ -571,8 +571,8 @@ void S_ParseSndSeq (int levellump)
TArray<uint32_t> ScriptTemp;
int lastlump, lump;
char seqtype = ':';
FName seqname;
FName slot;
FName seqname = NAME_None;
FName slot = NAME_None;
int stopsound;
int delaybase;
float volumebase;