Fixed compilation problem (with some compilers).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1880 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-05-13 01:07:02 +00:00
parent 844ed33555
commit 6c1553f7d2

View File

@ -105,9 +105,11 @@ const std::string Challenge::getUnlockedMessage() const
switch(m_feature[n].type)
{
case UNLOCK_TRACK:
Track* track = track_manager->getTrack( m_feature[n].name );
snprintf(message, 127, _("New track '%s'\nnow available"), gettext(track->getName()) );
break;
{
Track* track = track_manager->getTrack( m_feature[n].name );
snprintf(message, 127, _("New track '%s'\nnow available"), gettext(track->getName()) );
break;
}
case UNLOCK_MODE:
snprintf(message, 127, _("New game mode\n'%s'\nnow available"), m_feature[n].user_name.c_str() );
break;
@ -122,4 +124,4 @@ const std::string Challenge::getUnlockedMessage() const
}
return unlocked_message;
}
}