From 0d3e6d7ed6966131693f8047e733909cb93ed753 Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Fri, 22 Aug 2025 23:32:31 +0300 Subject: [PATCH] Fix scaled physics prop save/restore --- sp/src/game/server/props.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sp/src/game/server/props.cpp b/sp/src/game/server/props.cpp index 037a0226efe..3ad30b621fa 100644 --- a/sp/src/game/server/props.cpp +++ b/sp/src/game/server/props.cpp @@ -41,6 +41,7 @@ #include "physics_collisionevent.h" #include "gamestats.h" #include "vehicle_base.h" +#include "physics_saverestore.h" #ifdef MAPBASE #include "mapbase/GlobalStrings.h" #include "collisionutils.h" @@ -7186,6 +7187,7 @@ bool UTIL_CreateScaledPhysObject( CBaseAnimating *pInstance, float flScale ) pInstance->VPhysicsDestroyObject(); pInstance->VPhysicsSetObject( pNewObject ); + g_pPhysSaveRestoreManager->AssociateModel( pNewObject, pInstance->GetModelIndex() ); // Increase our model bounds const model_t *pModel = modelinfo->GetModel( pInstance->GetModelIndex() );