Apply patch by 'Steel_' to correct crash in 3-strikes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
908c1c6b05
commit
4412643213
@ -116,7 +116,13 @@ void Item::initItem(ItemType type, const Vec3 &xyz)
|
||||
// Now determine in which quad this item is, and its distance
|
||||
// from the center within this quad.
|
||||
m_graph_node = QuadGraph::UNKNOWN_SECTOR;
|
||||
QuadGraph::get()->findRoadSector(xyz, &m_graph_node);
|
||||
QuadGraph* currentQuadGraph = QuadGraph::get();
|
||||
|
||||
// Check that QuadGraph exist ( it might not in battle mode for eg)
|
||||
if (currentQuadGraph != NULL)
|
||||
{
|
||||
QuadGraph::get()->findRoadSector(xyz, &m_graph_node);
|
||||
}
|
||||
|
||||
if(m_graph_node==QuadGraph::UNKNOWN_SECTOR)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user