fix tests compilation

This commit is contained in:
2019-05-14 18:29:48 +07:00
parent f76461666e
commit b1ba916b17
2 changed files with 118 additions and 112 deletions

View File

@@ -53,7 +53,9 @@ namespace
private:
bool create_scene() {
auto scene_prefab_res = the<library>().load_asset<prefab_asset>("scene_prefab.json");
auto scene_go = scene_prefab_res ? the<world>().instantiate(scene_prefab_res) : nullptr;
auto scene_go = scene_prefab_res
? the<world>().instantiate(scene_prefab_res->content())
: nullptr;
return !!scene_go;
}