forked from 0ad/0ad
Ignore production hotkeys for observers instead of throwing errors on press.
This was SVN commit r17948.
This commit is contained in:
parent
350422dcae
commit
aa64a92d1a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user