diff --git a/source/simulation2/components/CCmpRangeManager.cpp b/source/simulation2/components/CCmpRangeManager.cpp index 57622e3035..77c9015dc3 100644 --- a/source/simulation2/components/CCmpRangeManager.cpp +++ b/source/simulation2/components/CCmpRangeManager.cpp @@ -1050,7 +1050,7 @@ public: virtual std::vector GetNonGaiaEntities() const { - return GetEntitiesByMask(((1 << MAX_LOS_PLAYER_ID) - 1) << 1); + return GetEntitiesByMask(~3); // bit 0 for owner=-1 and bit 1 for gaia } std::vector GetEntitiesByMask(u32 ownerMask) const