Fix for crash with game engines LibLoad feature

This commit is contained in:
Campbell Barton 2013-12-30 12:18:41 +11:00
parent 6d9e6bca8f
commit d44132d0d0

@ -1113,7 +1113,7 @@ KX_LibLoadStatus *KX_BlenderSceneConverter::LinkBlendFile(BlendHandle *bpy_openl
return NULL;
}
main_newlib= (Main *)MEM_callocN( sizeof(Main), "BgeMain");
main_newlib = BKE_main_new();
BKE_reports_init(&reports, RPT_STORE);
load_datablocks(main_newlib, bpy_openlib, path, idcode);