Switch case initialisation error fix
This commit is contained in:
parent
220e1a7d8b
commit
a8f5d021d3
|
@ -157,20 +157,17 @@ namespace SHADE
|
|||
{
|
||||
case AssetType::PREFAB:
|
||||
newPath += PREFAB_FOLDER;
|
||||
auto prefab = new SHPrefabAsset();
|
||||
data = prefab;
|
||||
data = new SHPrefabAsset();
|
||||
break;
|
||||
|
||||
case AssetType::SCENE:
|
||||
newPath += SCENE_FOLDER;
|
||||
auto scene = new SHSceneAsset();
|
||||
data = scene;
|
||||
data = new SHSceneAsset();
|
||||
break;
|
||||
|
||||
case AssetType::MATERIAL:
|
||||
newPath += MATERIAL_FOLDER;
|
||||
auto material = new SHMaterialAsset();
|
||||
data = material;
|
||||
data = new SHMaterialAsset();
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue