aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/mp/_score.nut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-06-29 23:52:45 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-06-29 23:52:45 +0100
commit53194543e43f8a645ba83ddb464028ba0c3b9d70 (patch)
treebee4f045e4e0dba4ca07fef04e2600b2c897c3c1 /Northstar.CustomServers/scripts/vscripts/mp/_score.nut
parent31c8a052e8f3cdccedb7f6f8d2bd11678189001a (diff)
downloadNorthstarMods-53194543e43f8a645ba83ddb464028ba0c3b9d70.tar.gz
NorthstarMods-53194543e43f8a645ba83ddb464028ba0c3b9d70.zip
fix lts spawn bugs and some crashes
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/mp/_score.nut')
-rw-r--r--Northstar.CustomServers/scripts/vscripts/mp/_score.nut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/mp/_score.nut b/Northstar.CustomServers/scripts/vscripts/mp/_score.nut
index 9f1e59789..c54bbf8d1 100644
--- a/Northstar.CustomServers/scripts/vscripts/mp/_score.nut
+++ b/Northstar.CustomServers/scripts/vscripts/mp/_score.nut
@@ -31,7 +31,7 @@ void function AddPlayerScore( entity targetPlayer, string scoreEventName, entity
{
ScoreEvent event = GetScoreEvent( scoreEventName )
- if ( !event.enabled )
+ if ( !event.enabled || !targetPlayer.IsPlayer() )
return
var associatedHandle = 0