Skip to content

Commit

Permalink
Fix filth nest buildings being able to be captured by placing energy …
Browse files Browse the repository at this point in the history
…core
  • Loading branch information
IonAgorria committed Jun 17, 2024
1 parent a4da50f commit 184cdc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Units/IronBuilding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ int terBuildingPowered::repairRequest() const
//-------------------------------------------

terBuildingEnvironment::terBuildingEnvironment(const UnitTemplate& data)
: terBuildingPowered(data)
: terBuilding(data)
{
}

Expand Down
3 changes: 2 additions & 1 deletion Source/Units/IronBuilding.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,13 @@ class terBuildingUninstall : public terUnitBase
DurationTimer lifeTimer_;
};

class terBuildingEnvironment : public terBuildingPowered
class terBuildingEnvironment : public terBuilding
{
public:
terBuildingEnvironment(const UnitTemplate& data);

ChainID chainRequest() const { return CHAIN_NONE; }
int repairRequest() const { return 0; }
};

#endif //__IRONBUILDING_H__

0 comments on commit 184cdc2

Please sign in to comment.