mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 08:17:13 +00:00
unsubscribe from VehiclePhysicsConstants.Changed event when vehicle is destroyed
This commit is contained in:
parent
b9852975af
commit
7581f4ac0a
1 changed files with 2 additions and 0 deletions
|
@ -189,6 +189,8 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
{
|
||||
s_vehicles.Remove(this);
|
||||
|
||||
VehiclePhysicsConstants.Changed -= this.UpdateValues;
|
||||
|
||||
this.OnDisable_Radio();
|
||||
|
||||
if (this.HighDetailMeshesParent != null)
|
||||
|
|
Loading…
Reference in a new issue