Skip to content

Commit

Permalink
UPBGE: Fix KX_SteeringActuator.navmesh assignement.
Browse files Browse the repository at this point in the history
The type check for the assigned object is fixed.
  • Loading branch information
panzergame committed Nov 4, 2018
1 parent 51e8bf4 commit d138c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_SteeringActuator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ int KX_SteeringActuator::pyattr_set_navmesh(EXP_PyObjectPlus *self, const struct
return PY_SET_ATTR_FAIL;

}
if (gameobj->GetGameObjectType() == SCA_IObject::OBJ_NAVMESH) {
if (gameobj->GetGameObjectType() != SCA_IObject::OBJ_NAVMESH) {
PyErr_Format(PyExc_TypeError, "KX_NavMeshObject is expected");
return PY_SET_ATTR_FAIL;
}
Expand Down

0 comments on commit d138c81

Please sign in to comment.