- Fixed: $Ambient SNDINFO commands zeroed the AmbientSound structure, which
is a no-no when using FString. SVN r490 (trunk)
This commit is contained in:
parent
4de9e98fd1
commit
8682f37b24
2 changed files with 8 additions and 1 deletions
|
|
@ -901,7 +901,12 @@ static void S_AddSNDINFO (int lump)
|
|||
{
|
||||
ambient = Ambients[sc_Number];
|
||||
}
|
||||
memset (ambient, 0, sizeof(AmbientSound));
|
||||
ambient->type = 0;
|
||||
ambient->periodmin = 0;
|
||||
ambient->periodmax = 0;
|
||||
ambient->volume = 0;
|
||||
ambient->attenuation = 0;
|
||||
ambient->sound = "";
|
||||
|
||||
SC_MustGetString ();
|
||||
ambient->sound = sc_String;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue