diff --git a/Source/Engine/Animations/CurveSerialization.h b/Source/Engine/Animations/CurveSerialization.h index 4af89ceca..91e53de0a 100644 --- a/Source/Engine/Animations/CurveSerialization.h +++ b/Source/Engine/Animations/CurveSerialization.h @@ -186,6 +186,7 @@ namespace Serialization // Raw keyframes data stream.WriteInt32(keyframes.Count()); + static_assert(TIsPODType::Value, "Raw bytes serialization only for raw POD types."); stream.WriteBytes(keyframes.Get(), keyframes.Count() * sizeof(KeyFrame)); } @@ -209,6 +210,7 @@ namespace Serialization int32 keyframesCount; stream.ReadInt32(&keyframesCount); keyframes.Resize(keyframesCount, false); + static_assert(TIsPODType::Value, "Raw bytes serialization only for raw POD types."); stream.ReadBytes(keyframes.Get(), keyframes.Count() * sizeof(KeyFrame)); return false;