From e570ac2c740a025dfa8ec3ef146cd9efc987d96f Mon Sep 17 00:00:00 2001 From: Dimava Date: Tue, 28 Jul 2020 15:32:07 +0300 Subject: [PATCH] fix pippete throws on empty hand --- src/js/game/hud/parts/building_placer_logic.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/game/hud/parts/building_placer_logic.js b/src/js/game/hud/parts/building_placer_logic.js index 32b12796..97a635a6 100644 --- a/src/js/game/hud/parts/building_placer_logic.js +++ b/src/js/game/hud/parts/building_placer_logic.js @@ -344,6 +344,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart { // If the building we are picking is the same as the one we have, clear the cursor. if ( + this.currentMetaBuilding.get() && extracted.metaInstance.getId() === this.currentMetaBuilding.get().getId() && extracted.variant === this.currentVariant.get() ) {