Ignore production hotkeys for observers instead of throwing errors on press.

This was SVN commit r17948.
This commit is contained in:
elexis 2016-03-24 21:26:34 +00:00
parent 350422dcae
commit aa64a92d1a

View File

@ -1353,7 +1353,7 @@ function addTrainingByPosition(position)
var playerState = simState.players[Engine.GetPlayerID()];
var selection = g_Selection.toList();
if (!selection.length)
if (!playerState || !selection.length)
return;
var trainableEnts = getAllTrainableEntitiesFromSelection();