Skip to content

Commit 9cb2777

Browse files
committed
Bandaid Fix
Prevent crash after death when wearing armor, as seen in #166
1 parent cc31814 commit 9cb2777

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xrGame/Actor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,8 @@ void CActor::OnItemDrop(CInventoryItem* inventory_item, bool just_before_destroy
22362236
CCustomOutfit* outfit = smart_cast<CCustomOutfit*>(inventory_item);
22372237
if (outfit && inventory_item->m_ItemCurrPlace.type == eItemPlaceSlot)
22382238
{
2239-
outfit->ApplySkinModel(this, false, false);
2239+
if (!(just_before_destroy && psDeviceFlags.test(rsDisableObjectsAsCrows)))
2240+
outfit->ApplySkinModel(this, false, false);
22402241
}
22412242

22422243
CWeapon* weapon = smart_cast<CWeapon*>(inventory_item);

0 commit comments

Comments
 (0)