Skip to content

Commit

Permalink
[misc] minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Jan 17, 2025
1 parent 1f52f5e commit d281bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Game/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ namespace spartan
entity->GetDescendants(&entities);
for (Entity* entity : entities)
{
if (entity->IsActive() && entity->GetComponent<Renderable>() != nullptr)
if (entity->IsActive() && entity->GetComponent<Renderable>())
{
PhysicsBody* physics_body = entity->AddComponent<PhysicsBody>().get();
physics_body->SetShapeType(PhysicsShape::Mesh);
Expand Down

0 comments on commit d281bdc

Please sign in to comment.