Skip to content

Commit

Permalink
Fix crash on actor death in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
electrobas94 authored and Xottab-DUTY committed Dec 13, 2017
1 parent 565ba26 commit 885ac4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/Entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void CEntity::KillEntity(u16 whoID, bool bypass_actor_check)
#endif
//-AVO

if (this->ID() == Actor()->ID())
if (GameID() == eGameIDSingle && this->ID() == Actor()->ID())
{
Actor()->detach_Vehicle();
Actor()->use_MountedWeapon(nullptr);
Expand Down

0 comments on commit 885ac4e

Please sign in to comment.