Skip to content

Commit

Permalink
CDestroyablePhysicsObject::OnChangeVisual: remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
revolucas committed Sep 10, 2016
1 parent eb35269 commit 4145d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/DestroyablePhysicsObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CDestroyablePhysicsObject::~CDestroyablePhysicsObject()
void CDestroyablePhysicsObject::OnChangeVisual()
{
if (m_pPhysicsShell){
if(m_pPhysicsShell)m_pPhysicsShell->Deactivate();
m_pPhysicsShell->Deactivate();
xr_delete (m_pPhysicsShell);
VERIFY (0==Visual());
}
Expand Down

0 comments on commit 4145d6c

Please sign in to comment.