From ad2a999034c378695d449a1428eca7c67bb11ff4 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Fri, 27 Jan 2012 13:08:11 +0000 Subject: [PATCH] Fixed compiler warning. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10732 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/challenges/challenge_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/challenges/challenge_data.cpp b/src/challenges/challenge_data.cpp index deeb61d42..4ce8ba7a9 100644 --- a/src/challenges/challenge_data.cpp +++ b/src/challenges/challenge_data.cpp @@ -159,7 +159,7 @@ ChallengeData::ChallengeData(const std::string& filename) } int time = -1; - if (requirements_node->get("time", &time)) m_time[d] = time; + if (requirements_node->get("time", &time)) m_time[d] = (float)time; if (m_time[d] < 0 && m_position[d] < 0) error("position/time");