Fixed one crash with battle mode (though it still doesn't work fully).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-10-19 20:16:26 +00:00
parent bcce18aa50
commit 716f7e4942

View File

@ -742,6 +742,7 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id)
default_start->get("karts-per-row", &karts_per_row ); default_start->get("karts-per-row", &karts_per_row );
} }
m_start_transforms.resize(race_manager->getNumberOfKarts()); m_start_transforms.resize(race_manager->getNumberOfKarts());
if(!m_is_arena)
m_quad_graph->setDefaultStartPositions(&m_start_transforms, m_quad_graph->setDefaultStartPositions(&m_start_transforms,
karts_per_row, karts_per_row,
forwards_distance, forwards_distance,