Converted first thing to shared pointers.

This commit is contained in:
YourWishes committed 2023-11-02 20:35:11 -05:00
1 parent 7543d13e0e
commit b1088eeab7
17 files changed
+37 -67

No files matched your search

+3 -1
View File
@@ -18,7 +18,9 @@ namespace Dawn {
* @param man Asset Manasger for getting required assets from.
* @return List of required assets this prefab.
*/
static std::vector<Asset*> getRequiredAssets(AssetManager *man) {
static std::vector<std::shared_ptr<Asset>>
getRequiredAssets(AssetManager *man)
{
return P::prefabAssets(man);
}