Skip to content

Commit

Permalink
physenv: testing a fix for another crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Nov 19, 2024
1 parent 5a9cd8e commit 2d8f874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/modules/physenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ LUA_FUNCTION_STATIC(physenv_DestroyEnvironment)
CBaseEntity* pEntity = (CBaseEntity*)pObject->GetGameData();
if (pEntity)
{

pEntity->VPhysicsUpdate(NULL); // Since the vtables are broken since ~4 functions were removed, this should currently call VPhysicsDestroyObject
}
}

Expand Down

0 comments on commit 2d8f874

Please sign in to comment.