]> git.mxchange.org Git - simgear.git/blobdiff - simgear/environment/visual_enviro.cxx
Allow tasks to be removed from the EventManager by name.
[simgear.git] / simgear / environment / visual_enviro.cxx
index 71a0c5eaee71b2405ae1392bc9b032afd9ae0e9a..b0cb219059f4b8ceecf844b8d7cb3581a0c85886 100644 (file)
@@ -756,7 +756,7 @@ void SGEnviro::drawLightning(void) {
                                SGSharedPtr<SGSoundSample> snd = sampleGroup->find("thunder");
                                if( snd ) {
                                        SGVec3d pos = SGVec3d(ax, ay, -sgEnviro.last_alt);
-                                       snd->set_base_position(pos);
+                                       snd->set_position(pos);
                                        snd->play_once();
                                }
                        }