From a6d6e0351d51d9cd095ec71910c6e6963f41eaa1 Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Mon, 21 Oct 2019 13:55:25 +1100 Subject: [PATCH] use proper syntax for accessing vector data --- source-code/source/plugins/TLAC/Components/Pause.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source-code/source/plugins/TLAC/Components/Pause.cpp b/source-code/source/plugins/TLAC/Components/Pause.cpp index c4f18da..7372301 100644 --- a/source-code/source/plugins/TLAC/Components/Pause.cpp +++ b/source-code/source/plugins/TLAC/Components/Pause.cpp @@ -41,10 +41,10 @@ namespace TLAC::Components void Pause::saveOldPatchOps() { origAetMovOp.resize(8); - memcpy(&origAetMovOp[0], aetMovPatchAddress, 8); + memcpy(origAetMovOp.data(), aetMovPatchAddress, 8); origFramespeedOp.resize(4); - memcpy(&origFramespeedOp[0], framespeedPatchAddress, 4); + memcpy(origFramespeedOp.data(), framespeedPatchAddress, 4); } void Pause::Initialize(ComponentsManager*)