Converted first thing to shared pointers.

This commit is contained in:
2023-11-02 20:35:11 -05:00
parent 7543d13e0e
commit b1088eeab7
17 changed files with 37 additions and 67 deletions

View File

@ -20,10 +20,10 @@ namespace Dawn {
cube = SimpleSpinningCubePrefab::prefabCreate(this);
}
std::vector<Asset*> getRequiredAssets() override {
std::vector<std::shared_ptr<Asset>> getRequiredAssets() override {
auto assMan = &this->game->assetManager;
std::vector<Asset*> assets;
vectorAppend(&assets, SimpleSpinningCubePrefab::getRequiredAssets(assMan));
std::vector<std::shared_ptr<Asset>> assets;
vectorAppend(assets, SimpleSpinningCubePrefab::getRequiredAssets(assMan));
return assets;
}