Skip to content
Snippets Groups Projects
Commit 48288a12 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Use correct type in parsing vec4 from string

parent 28aef491
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ BOOL LLVector4::parseVector4(const std::string& buf, LLVector4* value)
}
LLVector4 v;
S32 count = sscanf(buf.c_str(), "%lf %lf %lf %lf", v.mV + 0, v.mV + 1, v.mV + 2, v.mV + 3);
S32 count = sscanf(buf.c_str(), "%f %f %f %f", v.mV + 0, v.mV + 1, v.mV + 2, v.mV + 3);
if (4 == count)
{
value->setVec(v);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment