forked from 0ad/0ad
Fix error introduced in 95b0a8d9bf
while fixing a warning
This was SVN commit r15034.
This commit is contained in:
parent
63bcf2fef6
commit
60334f05c8
@ -177,7 +177,7 @@ function updateBuildingPlacementPreview()
|
||||
|
||||
function findGatherType(gatherer, supply)
|
||||
{
|
||||
if (!("resourceGatherRates" in gatherer) || !supply)
|
||||
if (!("resourceGatherRates" in gatherer) || !gatherer.resourceGatherRates || !supply)
|
||||
return undefined;
|
||||
if (gatherer.resourceGatherRates[supply.type.generic+"."+supply.type.specific])
|
||||
return supply.type.specific;
|
||||
|
Loading…
Reference in New Issue
Block a user