mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
Converted (almost) all namespace enum's to enum classes
This commit is contained in:
@@ -195,7 +195,7 @@ bool CCallback::buildBuilding(const CGTownInstance *town, BuildingID buildingID)
|
||||
if(town->tempOwner!=player)
|
||||
return false;
|
||||
|
||||
if(!canBuildStructure(town, buildingID))
|
||||
if(canBuildStructure(town, buildingID) != EBuildingState::ALLOWED)
|
||||
return false;
|
||||
|
||||
BuildStructure pack(town->id,buildingID);
|
||||
|
Reference in New Issue
Block a user