From 96bb7cbe53f7ccfbf54cd8bdae7978f0e69374cf Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Sat, 26 Jan 2008 16:57:46 +0000 Subject: [PATCH] Fix for avisynth.h for it to work with avisynthx64 Originally committed to SVN as r1845. --- aegisub/avisynth.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aegisub/avisynth.h b/aegisub/avisynth.h index 25a4b3d1b..6a7ba5eba 100644 --- a/aegisub/avisynth.h +++ b/aegisub/avisynth.h @@ -566,8 +566,9 @@ private: if (!init && IsClip() && clip) clip->Release(); // make sure this copies the whole struct! - ((__int32*)this)[0] = ((__int32*)src)[0]; - ((__int32*)this)[1] = ((__int32*)src)[1]; + //((__int32*)this)[0] = ((__int32*)src)[0]; + //((__int32*)this)[1] = ((__int32*)src)[1]; + memcpy(this, src, sizeof(AVSValue)); } };