Exception on exit fix

This commit is contained in:
SDraw 2023-05-07 21:13:47 +03:00
parent cc8f711d09
commit 9159946de6
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5

View file

@ -171,7 +171,7 @@ namespace ml_prm
// Game events
internal void OnAvatarClear()
{
if(m_enabled)
if(m_enabled && (MovementSystem.Instance != null))
MovementSystem.Instance.SetImmobilized(false);
if(m_puppet != null)