[fixed] Bug in example demo

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Kamazy
Posts: 24
Joined: Tue Oct 11, 2005 12:16 pm

[fixed] Bug in example demo

Post by Kamazy »

Code: Select all

			// delete entry
			Impacts.erase(i);
			i--;
		
			// play impact sound
			#ifdef USE_IRRKLANG
			if (irrKlang)
				irrKlang->play3D(impactSound, Impacts[i].pos, false,false,false);
			#endif

			#ifdef USE_SDL_MIXER
			if (impactSound)
				playSound(impactSound);
			#endif
should be:

Code: Select all

// play impact sound
			#ifdef USE_IRRKLANG
			if (irrKlang)
				irrKlang->play3D(impactSound, Impacts[i].pos, false,false,false);
			#endif

			#ifdef USE_SDL_MIXER
			if (impactSound)
				playSound(impactSound);
			#endif

			// delete entry
			Impacts.erase(i);
			i--;
Or demo crashes when trying to play impact sound.
Cheerz! I'm new don't shoot! Image
Image
Post Reply