Skip to content
Permalink
Browse files

Do not use the pickup object in CClientPickup::GetPosition

Solves crash offset 00072bad. I assume the pointer to the object got invalidated, but CClientPickup::m_pObject wasn't updated.
  • Loading branch information...
botder committed Sep 25, 2019
1 parent 5325a5c commit 19d089503e3dd868bab51a053738331130718dd8
Showing with 1 addition and 5 deletions.
  1. +1 −5 Client/mods/deathmatch/logic/CClientPickup.cpp
@@ -55,11 +55,7 @@ void CClientPickup::Unlink()

void CClientPickup::GetPosition(CVector& vecPosition) const
{
if (m_pObject)
{
vecPosition = *m_pObject->GetPosition();
}
else if (m_pAttachedToEntity)
if (m_pAttachedToEntity)
{
m_pAttachedToEntity->GetPosition(vecPosition);
vecPosition += m_vecAttachedPosition;

0 comments on commit 19d0895

Please sign in to comment.
You can’t perform that action at this time.