diff --git a/src/script/script_gui.cpp b/src/script/script_gui.cpp index 93c551029d..7ccbce795f 100644 --- a/src/script/script_gui.cpp +++ b/src/script/script_gui.cpp @@ -1107,7 +1107,7 @@ struct ScriptDebugWindow : public Window { this->SetWidgetDisabledState(WID_SCRD_SETTINGS, script_debug_company == INVALID_COMPANY); extern CompanyID _local_company; this->SetWidgetDisabledState(WID_SCRD_RELOAD_TOGGLE, script_debug_company == INVALID_COMPANY || - script_debug_company == OWNER_DEITY || (script_debug_company == _local_company && !UserIsAllowedToChangeGameScript())); + script_debug_company == _local_company || (script_debug_company == OWNER_DEITY && !UserIsAllowedToChangeGameScript())); this->SetWidgetDisabledState(WID_SCRD_CONTINUE_BTN, script_debug_company == INVALID_COMPANY || (script_debug_company == OWNER_DEITY ? !Game::IsPaused() : !AI::IsPaused(script_debug_company))); }