Commit 48f48aea authored by hybrid's avatar hybrid

Fix wrong type mix, found by Nalin.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2580 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 7e3e8f3c
...@@ -1828,7 +1828,8 @@ public: ...@@ -1828,7 +1828,8 @@ public:
virtual core::stringc getString() virtual core::stringc getString()
{ {
return Value ? Value->getName() : core::stringc(); // since texture names can be stringw we are careful with the types
return core::stringc(Value ? Value->getName().c_str() : 0);
} }
virtual void setString(const char* text) virtual void setString(const char* text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment