Added missing initalisation, fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1565 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
7380668ade
commit
d68cfc3330
@ -296,6 +296,7 @@ void Kart::createPhysics(ssgEntity *obj)
|
|||||||
Kart::~Kart()
|
Kart::~Kart()
|
||||||
{
|
{
|
||||||
if(m_smokepuff) delete m_smokepuff;
|
if(m_smokepuff) delete m_smokepuff;
|
||||||
|
if(m_smoke_system != NULL) delete m_smoke_system;
|
||||||
|
|
||||||
sgMat4 wheel_steer;
|
sgMat4 wheel_steer;
|
||||||
sgMakeIdentMat4(wheel_steer);
|
sgMakeIdentMat4(wheel_steer);
|
||||||
@ -358,6 +359,7 @@ void Kart::reset()
|
|||||||
m_lap_start_time = -1.0f;
|
m_lap_start_time = -1.0f;
|
||||||
m_time_at_last_lap = 99999.9f;
|
m_time_at_last_lap = 99999.9f;
|
||||||
m_shortcut_sector = Track::UNKNOWN_SECTOR;
|
m_shortcut_sector = Track::UNKNOWN_SECTOR;
|
||||||
|
m_is_shortcut = false;
|
||||||
m_race_position = 9;
|
m_race_position = 9;
|
||||||
m_finished_race = false;
|
m_finished_race = false;
|
||||||
m_finish_time = 0.0f;
|
m_finish_time = 0.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user