mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-02-25 20:29:54 +00:00
Replace all auto with auto*
For components
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user