Observer fix for shared-dropsites, refs #3791.

This was SVN commit r17887.
This commit is contained in:
elexis 2016-03-14 01:23:09 +00:00
parent 541a5567d8
commit bedce1e617

View File

@ -961,7 +961,7 @@ var g_AllyEntityCommands =
"share-dropsite": {
"getInfo": function(entState)
{
if (!GetSimState().players[Engine.GetPlayerID()].hasSharedDropsites)
if (Engine.GetPlayerID() == -1 || !GetSimState().players[Engine.GetPlayerID()].hasSharedDropsites)
return false;
if (!entState.resourceDropsite || !entState.resourceDropsite.sharable)
return false;