Removed minor memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
1fd6eb7b66
commit
0b4ceb8c2b
@ -200,9 +200,9 @@ void Kart::createPhysics(ssgEntity *obj)
|
||||
wheel.m_rollInfluence = m_kart_properties->getRollInfluence();
|
||||
}
|
||||
// Obviously these allocs have to be properly managed/freed
|
||||
btTransform *t=new btTransform();
|
||||
t->setIdentity();
|
||||
m_uprightConstraint=new btUprightConstraint(*m_body, *t);
|
||||
btTransform t;
|
||||
t.setIdentity();
|
||||
m_uprightConstraint=new btUprightConstraint(*m_body, t);
|
||||
m_uprightConstraint->setLimit(m_kart_properties->getUprightTolerance());
|
||||
m_uprightConstraint->setBounce(0.0f);
|
||||
m_uprightConstraint->setMaxLimitForce(m_kart_properties->getUprightMaxForce());
|
||||
|
Loading…
Reference in New Issue
Block a user