From 0aa1fe0b8d56f4be994a93ee54227150528367ee Mon Sep 17 00:00:00 2001 From: HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> Date: Thu, 28 Jul 2022 17:48:44 +0300 Subject: [PATCH] fix arm allignment --- vphysics/physics_collide.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vphysics/physics_collide.cpp b/vphysics/physics_collide.cpp index 3770d91b..1c2609f6 100644 --- a/vphysics/physics_collide.cpp +++ b/vphysics/physics_collide.cpp @@ -1637,8 +1637,8 @@ void CPhysicsCollision::VCollideLoad( vcollide_t *pOutput, int solidCount, const for ( int i = 0; i < solidCount; i++ ) { - int size = *(int*)(pBuffer + position); - // memcpy( &size, pBuffer + position, sizeof(int) ); + int size; + memcpy( &size, pBuffer + position, sizeof(int) ); position += sizeof(int); char *tmpbuf = new char[size];