Commit c45988b8 authored by cutealien's avatar cutealien

bugfix: CUserPointerAttribute::setString had used wrong scanf string...

bugfix: CUserPointerAttribute::setString had used wrong scanf string parameters (and as far as I can see never worked).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4967 dfc29bdd-3216-0410-991c-e03cc46cb475
parent c8c9733e
...@@ -2054,7 +2054,7 @@ public: ...@@ -2054,7 +2054,7 @@ public:
case 4: case 4:
{ {
unsigned int tmp; // not using an irrlicht type - sscanf with %x needs always unsigned int unsigned int tmp; // not using an irrlicht type - sscanf with %x needs always unsigned int
sscanf(text, "0x%x", &tmp); sscanf(text, "%x", &tmp);
val = (size_t)tmp; val = (size_t)tmp;
} }
break; break;
......
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