Codechange: make IndustryAvailabilityCallType a scoped enum

This commit is contained in:
Peter Nelson
2026-04-30 22:40:20 +01:00
committed by Peter Nelson
parent 89174e891a
commit 77be3fc12d
6 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ class BuildIndustryWindow : public Window {
void UpdateAvailability()
{
this->enabled = this->selected_type != IT_INVALID && (_game_mode == GM_EDITOR || GetIndustryProbabilityCallback(this->selected_type, IACT_USERCREATION, 1) > 0);
this->enabled = this->selected_type != IT_INVALID && (_game_mode == GM_EDITOR || GetIndustryProbabilityCallback(this->selected_type, IndustryAvailabilityCallType::UserCreation, 1) > 0);
}
void SetupArrays()