- Fixed: $Ambient SNDINFO commands zeroed the AmbientSound structure, which

is a no-no when using FString.


SVN r490 (trunk)
This commit is contained in:
Randy Heit 2007-02-20 00:25:26 +00:00
commit 8682f37b24
2 changed files with 8 additions and 1 deletions

View file

@ -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;