From 18127ef8488e679bbc2e33140ae30a253c74f181 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Sun, 16 Feb 2020 11:19:30 +0300 Subject: [PATCH] Fix VectorCopy to work correctly with pointers again --- dlls/animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/animation.cpp b/dlls/animation.cpp index 0efada33..10a1241d 100644 --- a/dlls/animation.cpp +++ b/dlls/animation.cpp @@ -63,7 +63,7 @@ typedef unsigned char byte; #include "animation.h" #include "scriptevent.h" #include "studio.h" -#define VectorCopy(x,y) (y = x) +#define VectorCopy(a,b) {(b)[0]=(a)[0];(b)[1]=(a)[1];(b)[2]=(a)[2];} #endif #pragma warning( disable : 4244 )