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:
@@ -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
|
||||
//-----------------------------
|
||||
|
||||
Reference in New Issue
Block a user