Re #307 (code cleanup) Fixed use of unitialized f data member for grass_skid instance of QSoundChar (thanks to Valgrind) ; hope it improves things on the #152 / #254 side ...

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3384 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 973df8809475d85166dd3618a44a4dd8d96170fd
Former-commit-id: f2ab99ff92f8a649a6664b6a660b296d6dea33c5
This commit is contained in:
pouillot 2011-02-20 18:27:40 +00:00
parent 66f9883bd7
commit 569f81926a

View file

@ -178,6 +178,7 @@ void CarSoundData::calculateBackfireSound (tCarElt* car)
void CarSoundData::calculateTyreSound(tCarElt* car)
{
grass_skid.a = 0.0;
grass_skid.f = 1.0f;
grass.a = 0.0;
grass.f = 1.0f;
road.a = 0.0;