Added assert to catch inconsistent setting of number of karts.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-09-21 04:07:28 +00:00
parent 248c12c3a2
commit 1b1224b244

View File

@ -213,6 +213,7 @@ void RaceManager::startNew()
// ==========================================================================
m_kart_status.clear();
assert(m_num_karts == m_random_kart_list.size()+m_player_karts.size());
// First add the AI karts (randomly chosen)
// ----------------------------------------
int init_gp_rank = 0;