Fix logic error

This commit is contained in:
FutureRave 2022-01-10 12:12:56 +00:00
parent b6ae4bfe87
commit 9a100a309c
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -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
}