Browse Source

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

BearishSun 8 years ago
parent
commit
0dc69d8023
1 changed files with 1 additions and 1 deletions
  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;
 		}