diff --git a/dScripts/WhFans.cpp b/dScripts/WhFans.cpp index b11da6e5..39bbab3b 100644 --- a/dScripts/WhFans.cpp +++ b/dScripts/WhFans.cpp @@ -27,7 +27,7 @@ void WhFans::ToggleFX(Entity* self, bool hit) { self->SetVar(u"on", false); for (Entity* volume : fanVolumes) { - auto phantomPhysicsComponent = volume->GetComponent(); + auto volumePhys = volume->GetComponent(); if (!volumePhys) continue; volumePhys->SetPhysicsEffectActive(false); EntityManager::Instance()->SerializeEntity(volume); @@ -39,7 +39,7 @@ void WhFans::ToggleFX(Entity* self, bool hit) { self->SetVar(u"on", true); for (Entity* volume : fanVolumes) { - auto phantomPhysicsComponent = volume->GetComponent(); + auto volumePhys = volume->GetComponent(); if (!volumePhys) continue; volumePhys->SetPhysicsEffectActive(true); EntityManager::Instance()->SerializeEntity(volume);