From 716f7e49426eb8730a8f0ed0083fa9646cfa4c56 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 19 Oct 2010 20:16:26 +0000 Subject: [PATCH] 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 --- src/tracks/track.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index 339c25a9e..33dd1aa42 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -742,11 +742,12 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id) default_start->get("karts-per-row", &karts_per_row ); } m_start_transforms.resize(race_manager->getNumberOfKarts()); - m_quad_graph->setDefaultStartPositions(&m_start_transforms, - karts_per_row, - forwards_distance, - sidewards_distance, - upwards_distance); + if(!m_is_arena) + m_quad_graph->setDefaultStartPositions(&m_start_transforms, + karts_per_row, + forwards_distance, + sidewards_distance, + upwards_distance); loadMainTrack(*root); unsigned int main_track_count = m_all_nodes.size();