Skip to content

Commit db16f47

Browse files
authored
fix build (#10)
1 parent 32a9575 commit db16f47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PvPScript.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class PvPScript : public PlayerScript
7878

7979
bool CheckConditions(Player* killer, Player* killed)
8080
{
81+
if (!killer || !killed)
82+
return false;
83+
8184
//if killer has same IP as death player do not drop loot as its cheating!
8285
if (spawnchestIP)
8386
if (killer->GetSession()->GetRemoteAddress() == killed->GetSession()->GetRemoteAddress())

0 commit comments

Comments
 (0)