Skip to content

Commit 885ac4e

Browse files
electrobas94Xottab-DUTY
authored andcommitted
Fix crash on actor death in multiplayer
#184
1 parent 565ba26 commit 885ac4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrGame/Entity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void CEntity::KillEntity(u16 whoID, bool bypass_actor_check)
266266
#endif
267267
//-AVO
268268

269-
if (this->ID() == Actor()->ID())
269+
if (GameID() == eGameIDSingle && this->ID() == Actor()->ID())
270270
{
271271
Actor()->detach_Vehicle();
272272
Actor()->use_MountedWeapon(nullptr);

0 commit comments

Comments
 (0)