From 157077f96b89700b9d1d80185b057541a4de3eae Mon Sep 17 00:00:00 2001 From: tristan Date: Sun, 2 Dec 2018 01:12:49 +0100 Subject: [PATCH] UPBGE: Fix ray cast mask compilation warning. --- source/gameengine/Ketsji/KX_GameObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index be0acfe44943..f84c6ff6e7a8 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -3921,7 +3921,7 @@ KX_GameObject::RayCastData::RayCastData(const std::string& prop, bool xray, unsi static bool CheckRayCastObject(KX_GameObject *obj, KX_GameObject::RayCastData *rayData) { const std::string& prop = rayData->m_prop; - const unsigned short mask = rayData->m_mask; + const unsigned int mask = rayData->m_mask; // Check if the object had a given property (if this one is non empty) and have the correct group mask (if this one is different from 0xFFFF). return ((prop.empty() || obj->GetProperty(prop)) && (mask == ((1u << OB_MAX_COL_MASKS) - 1) || obj->GetCollisionGroup() & mask)); }