Avoid unnecessary conversion from std::string to char *.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-09-01 03:24:47 +00:00
parent 2a37d303fa
commit 4f3c9c7772

View File

@@ -269,7 +269,7 @@ public:
float getMaxSpeedReverseRatio () const {return m_max_speed_reverse_ratio; }
/** Returns the engine type (used to change sfx depending on kart size). */
const char* getEngineSfxType () const {return m_engine_sfx_type.c_str(); }
const std::string& getEngineSfxType () const {return m_engine_sfx_type; }
// Bullet physics get functions
//-----------------------------