Explorar o código

Bugfix: Setting bits in the Flags wrapper would reset all previously set bits (whoops)

BearishSun %!s(int64=8) %!d(string=hai) anos
pai
achega
0dc69d8023
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/BansheeUtility/Utility/BsFlags.h

+ 1 - 1
Source/BansheeUtility/Utility/BsFlags.h

@@ -43,7 +43,7 @@ namespace bs
 		/** Activates all of the provided bits. */
 		Flags<Enum, Storage>& set(Enum value)
 		{
-			mBits = static_cast<Storage>(value);
+			mBits |= static_cast<Storage>(value);
 
 			return *this;
 		}