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,11 +742,12 @@ 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());
m_quad_graph->setDefaultStartPositions(&m_start_transforms, if(!m_is_arena)
karts_per_row, m_quad_graph->setDefaultStartPositions(&m_start_transforms,
forwards_distance, karts_per_row,
sidewards_distance, forwards_distance,
upwards_distance); sidewards_distance,
upwards_distance);
loadMainTrack(*root); loadMainTrack(*root);
unsigned int main_track_count = m_all_nodes.size(); unsigned int main_track_count = m_all_nodes.size();