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:
curaga 2013-05-30 13:27:02 +00:00
parent 49cd57fbd9
commit 5256d568e3

View File

@ -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