Fix logic error
This commit is contained in:
parent
b6ae4bfe87
commit
9a100a309c
@ -159,12 +159,12 @@ namespace Components
|
||||
origin[i] = std::strtof(params.get(i + 1), nullptr);
|
||||
}
|
||||
|
||||
if (params.length() == 5)
|
||||
if (params.length() >= 5u)
|
||||
{
|
||||
angles[1] = std::strtof(params.get(4), nullptr); // Yaw
|
||||
}
|
||||
|
||||
if (params.length() == 6)
|
||||
if (params.length() == 6u)
|
||||
{
|
||||
angles[0] = std::strtof(params.get(5), nullptr); // Pitch
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user