Fix a possible crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
49cd57fbd9
commit
5256d568e3
@ -170,7 +170,7 @@ KartModel::~KartModel()
|
||||
}
|
||||
}
|
||||
|
||||
if(m_is_master)
|
||||
if(m_is_master && m_mesh)
|
||||
{
|
||||
m_mesh->drop();
|
||||
// If there is only one copy left, it's the copy in irrlicht's
|
||||
|
Loading…
Reference in New Issue
Block a user