From 5e06c484922e102ad51b41861e3f23062841738f Mon Sep 17 00:00:00 2001 From: William JCM Date: Sun, 13 Feb 2022 15:03:45 +0100 Subject: [PATCH] BinaryWriter: fix an issue with writeValueToArray(). The view needs to be of type T, not U (which can potentially be T&). --- src/UESaveFile/BinaryWriter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UESaveFile/BinaryWriter.h b/src/UESaveFile/BinaryWriter.h index 18013da..1d12acd 100644 --- a/src/UESaveFile/BinaryWriter.h +++ b/src/UESaveFile/BinaryWriter.h @@ -74,7 +74,7 @@ class BinaryWriter { template::value, T, T&>> auto writeValueToArray(U value) -> UnsignedLong { - Containers::ArrayView view{&value, 1}; + Containers::ArrayView view{&value, 1}; return writeDataToArray(view); }