unsubscribe from VehiclePhysicsConstants.Changed event when vehicle is destroyed

This commit is contained in:
in0finite 2020-06-20 16:21:29 +02:00
parent b9852975af
commit 7581f4ac0a

View file

@ -189,6 +189,8 @@ namespace SanAndreasUnity.Behaviours.Vehicles
{
s_vehicles.Remove(this);
VehiclePhysicsConstants.Changed -= this.UpdateValues;
this.OnDisable_Radio();
if (this.HighDetailMeshesParent != null)