Removed hopefully unnecessary string copy.

This commit is contained in:
hiker 2015-02-08 22:22:06 +11:00
parent 33cb6d9356
commit ca2b5335dc

View File

@ -351,11 +351,11 @@ void LinearWorld::newLap(unsigned int kart_index)
// Store the temporary string because clang would mess this up
// (remove the stringw before the wchar_t* is used).
core::stringw kartName = kart->getName();
const core::stringw &kart_name = kart->getName();
//I18N: as in "fastest lap: 60 seconds by Wilber"
irr::core::stringw m_fastest_lap_message =
_C("fastest_lap", "%s by %s", s.c_str(), kartName);
_C("fastest_lap", "%s by %s", s.c_str(), kart_name);
m_race_gui->addMessage(m_fastest_lap_message, NULL,
3.0f, video::SColor(255, 255, 255, 255), false);