Browse Source

Allow RTTIPlainType::getDynamicSize to be used for static size types as well

Marko Pintera 11 years ago
parent
commit
4ed275c118
1 changed files with 1 additions and 2 deletions
  1. 1 2
      BansheeUtility/Include/BsRTTIPrerequisites.h

+ 1 - 2
BansheeUtility/Include/BsRTTIPrerequisites.h

@@ -138,7 +138,6 @@ namespace BansheeEngine
 		 */
 		static UINT32 getDynamicSize(const T& data)
 		{ 
-			assert(false); 
 			return sizeof(T);
 		}
 	};
@@ -159,7 +158,7 @@ namespace BansheeEngine
 	static UINT32 fromMemory(##type##& data, char* memory)	\
 	{ memcpy(&data, memory, sizeof(##type##)); return sizeof(##type##); }			\
 	static UINT32 getDynamicSize(const type& data)		\
-	{ assert(false); return sizeof(##type##); }				\
+	{ return sizeof(##type##); }				\
 	}; 
 
 	/**