Commit c0f9e06d authored by hybrid's avatar hybrid

Merged revisions 4208-4318 from 1.7 branch. Aliasing fix for CAttributeImpl only.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4319 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e7c904e2
...@@ -2023,7 +2023,9 @@ public: ...@@ -2023,7 +2023,9 @@ public:
virtual void setString(const char* text) virtual void setString(const char* text)
{ {
sscanf(text, "0x%x", (unsigned int*)(&Value)); u32 tmp;
sscanf(text, "0x%x", &tmp);
Value = (void *) tmp;
} }
virtual E_ATTRIBUTE_TYPE getType() const virtual E_ATTRIBUTE_TYPE getType() const
......
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