Ignore recently-deceased units more gracefully in makePrimarySelection

This was SVN commit r7848.
This commit is contained in:
Ykkrosh 2010-08-05 10:07:00 +00:00
parent 82b6449f8b
commit c39c4ac8d3

View File

@ -51,7 +51,7 @@ EntitySelection.prototype.makePrimarySelection = function(primaryIndex, modifier
{
var entState = Engine.GuiInterfaceCall("GetEntityState", selection[i]);
if (!entState)
return;
continue;
if (entState.template == primaryEntState.template)
ents.push(selection[i]);
}