From 447d80b76f32fdbe1c65abe8c10ef263201bc8c6 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Mon, 25 Jul 2022 23:54:47 +0300 Subject: [PATCH] vphysix: fix saverestore crash --- vphysics/vphysics_saverestore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vphysics/vphysics_saverestore.cpp b/vphysics/vphysics_saverestore.cpp index 34fb585b..73cf0c8d 100644 --- a/vphysics/vphysics_saverestore.cpp +++ b/vphysics/vphysics_saverestore.cpp @@ -136,7 +136,7 @@ void CVPhysPtrSaveRestoreOps::Save( const SaveRestoreFieldInfo_t &fieldInfo, ISa for ( int i = 0; i < nObjects; i++ ) { pSave->WriteData( (char*)pField, sizeof(void*) ); - ++pField; + pField += sizeof(void*); } }