fix crash on non ddnet server if hook is in view

This commit is contained in:
c0d3d3v 2022-05-25 17:33:59 +02:00
parent 049a249944
commit 6a5673aa04
No known key found for this signature in database
GPG key ID: 068AF680530DFF31

View file

@ -550,7 +550,7 @@ void CCharacterCore::ReadCharacterCore(const CNetObj_CharacterCore *pObjCore)
m_HookPos.y = pObjCore->m_HookY;
m_HookDir.x = pObjCore->m_HookDx / 256.0f;
m_HookDir.y = pObjCore->m_HookDy / 256.0f;
SetHookedPlayer(pObjCore->m_HookedPlayer);
m_HookedPlayer = pObjCore->m_HookedPlayer;
m_Jumped = pObjCore->m_Jumped;
m_Direction = pObjCore->m_Direction;
m_Angle = pObjCore->m_Angle;