added missing include

This commit is contained in:
2016-05-29 01:38:14 +02:00
parent af185e1154
commit cd4d80fac6
2 changed files with 2 additions and 1 deletions

View File

@@ -517,7 +517,7 @@ void BoneExtended::set_bone_layers(std::string layerString, std::vector<std::str
if (isInteger(layer))
{
pos = atoi(layer.c_str());
if (pos >= 0 || pos < 32) {
if (pos >= 0 && pos < 32) {
this->bone_layers = bc_set_layer(this->bone_layers, pos);
continue;
}