From fb68fc46d1fec97e1475d29876e0972bd8f3f229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se> Date: Wed, 25 Jul 2018 16:45:06 +0200 Subject: [PATCH] Change from CCUpgrade to pure sc2::UPGRADE_ID CCUpgrade (sc2::UPGRADE_ID) does not contribute much and makes code more difficult. Especially in Python, since it does not convert between types implicitly. --- src/TechTree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TechTree.h b/src/TechTree.h index 3fda032b5..f790805c1 100644 --- a/src/TechTree.h +++ b/src/TechTree.h @@ -24,7 +24,7 @@ struct TypeData sc2::AbilityID warpAbility = 0; // the ability that creates this item via warp-in std::vector<UnitType> whatBuilds; // any of these units can build the item std::vector<UnitType> requiredUnits; // owning ONE of these is required to make - std::vector<CCUpgrade> requiredUpgrades; // having ALL of these is required to make + std::vector<sc2::UPGRADE_ID> requiredUpgrades; // having ALL of these is required to make std::vector<UnitType> requiredAddons; // a unit of this type must be present next to the producer }; -- GitLab