Skip to content

Commit

Permalink
Fix Actor's visual being dropped when you pick up a suit
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Mar 31, 2019
1 parent 573cf94 commit 4e570d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs/engine/xrGame/CustomOutfit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void CCustomOutfit::ApplySkinModel(CActor* pActor, bool bDress, bool bHUDOnly)

void CCustomOutfit::OnMoveToRuck (EItemPlace prev)
{
if (m_pInventory)
if (m_pInventory && prev == eItemPlaceSlot)
{
CActor* pActor = smart_cast<CActor*> (m_pInventory->GetOwner());
if (pActor)
Expand Down

0 comments on commit 4e570d4

Please sign in to comment.