fix to prevent selecting units and resources ( like trees) at once

This commit is contained in:
Titus Tscharntke 2012-11-06 22:29:13 +00:00
parent 7c59a00416
commit 6880b06152
1 changed files with 1 additions and 1 deletions

View File

@ -5314,7 +5314,7 @@ void Renderer::renderSelectionEffects() {
}
}
if(selectedResourceObject!=NULL)
if(selectedResourceObject!=NULL && selection->getCount()<1)
{
Resource *r= selectedResourceObject->getResource();
int defaultValue= r->getType()->getDefResPerPatch();