edits ontop of Alex's patch from r41292.
[blender.git] / source / blender / blenkernel / intern / speaker.c
index fb6a473..a01e2ea 100644 (file)
@@ -87,7 +87,7 @@ void make_local_speaker(Speaker *spk)
 
        if(spk->id.lib==NULL) return;
        if(spk->id.us==1) {
-               id_clear_lib_data(&bmain->speaker, (ID *)spk);
+               id_clear_lib_data(bmain, (ID *)spk);
                return;
        }
 
@@ -101,7 +101,7 @@ void make_local_speaker(Speaker *spk)
        }
 
        if(local && lib==0) {
-               id_clear_lib_data(&bmain->speaker, (ID *)spk);
+               id_clear_lib_data(bmain, (ID *)spk);
        }
        else if(local && lib) {
                Speaker *spkn= copy_speaker(spk);