I love the smell of UnrealEd crashing in the morning. – tarquin

Legacy talk:DynamicAmbientSound

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 06:30, 16 December 2015 by SeriousBarbie (Talk | contribs) (Bug in terminating the number of Sounds)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Bug in terminating the number of Sounds

If you have a look at the script, you'll find the following:

function BeginPlay () 
	local int i;
	// Calculate how many sounds the user specified
	for (i=0; i<16; i++) 
		if (Sounds[i] == None) 

If all array fields of Sounds[] have a value, no one will be None and numSounds will stay at 6. I guess the developer has forgotten the "1" before the "6" - with the statement "numSounds=16;" the code determinates the number of sounds correctly. --SeriousBarbie (talk) 05:30, 16 December 2015 (EST)