From 60334f05c8a252664f346bf7bbec2ba259f75634 Mon Sep 17 00:00:00 2001 From: Gallaecio Date: Sun, 27 Apr 2014 15:56:10 +0000 Subject: [PATCH] Fix error introduced in 95b0a8d9bf while fixing a warning This was SVN commit r15034. --- binaries/data/mods/public/gui/session/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/session/input.js b/binaries/data/mods/public/gui/session/input.js index 54e0cec2fb..47c0db4e3b 100644 --- a/binaries/data/mods/public/gui/session/input.js +++ b/binaries/data/mods/public/gui/session/input.js @@ -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;