- if (name == "") return;
- Scripting::AmbientSound* interface = new Scripting::AmbientSound(this);
- expose_object(vm, table_idx, interface, name, true);
+ Scripting::AmbientSound* interface = static_cast<Scripting::AmbientSound*> (this);
+ expose_object(vm, table_idx, interface, name, false);