Fixed compiler warning.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10732 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-01-27 13:08:11 +00:00
parent af51e45217
commit ad2a999034

View File

@ -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");