Просмотр исходного кода

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

BearishSun 8 лет назад
Родитель
Сommit
0dc69d8023
1 измененных файлов с 1 добавлено и 1 удалено
  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;
 		}