From d138c81b87f4f3469907358f912114dbcfc5114a Mon Sep 17 00:00:00 2001 From: tristan Date: Sun, 4 Nov 2018 11:09:48 +0100 Subject: [PATCH] UPBGE: Fix KX_SteeringActuator.navmesh assignement. The type check for the assigned object is fixed. --- source/gameengine/Ketsji/KX_SteeringActuator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameengine/Ketsji/KX_SteeringActuator.cpp b/source/gameengine/Ketsji/KX_SteeringActuator.cpp index 3c0b99176d52..19483be19fbe 100644 --- a/source/gameengine/Ketsji/KX_SteeringActuator.cpp +++ b/source/gameengine/Ketsji/KX_SteeringActuator.cpp @@ -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; }