From fafed601361734fdc34fed2435bb18bd5f51284e Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 8 Mar 2010 18:50:05 +0000 Subject: [PATCH] Bugfix : adding depend-on="" in a challenge file would cause the challenge to be unplayable git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4961 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/challenges/challenge_data.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/challenges/challenge_data.cpp b/src/challenges/challenge_data.cpp index 736ab9859..6d74fc5ac 100644 --- a/src/challenges/challenge_data.cpp +++ b/src/challenges/challenge_data.cpp @@ -149,8 +149,10 @@ ChallengeData::ChallengeData(const std::string& filename) std::vector< std::string > deps; root->get("depend-on", &deps); - for(unsigned int i=0; i 0) addDependency(deps[i]); + } delete root; } // ChallengeData