Move to shared pointer

This commit is contained in:
David Markowitz
2023-06-07 00:23:50 -07:00
parent ea9d0d8592
commit 9e9e4dc087
219 changed files with 743 additions and 748 deletions

View File

@@ -23,7 +23,7 @@ void ScriptedPowerupSpawner::OnTimerDone(Entity* self, std::string message) {
// Spawn the required number of powerups
auto* owner = EntityManager::Instance()->GetEntity(self->GetSpawnerID());
if (owner != nullptr) {
auto* renderComponent = self->GetComponent<RenderComponent>();
auto renderComponent = self->GetComponent<RenderComponent>();
for (auto i = 0; i < self->GetVar<uint32_t>(u"numberOfPowerups"); i++) {
if (renderComponent != nullptr) {
renderComponent->PlayEffect(0, u"cast", "N_cast");