mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: Make GetDefaultValueCallback() more similar to other setting override callbacks (#13259)
This commit is contained in:
+1
-1
@@ -479,7 +479,7 @@ void IntSettingDesc::SetValueDParams(uint first_param, int32_t value) const
|
||||
*/
|
||||
int32_t IntSettingDesc::GetDefaultValue() const
|
||||
{
|
||||
return this->get_def_cb != nullptr ? this->get_def_cb() : this->def;
|
||||
return this->get_def_cb != nullptr ? this->get_def_cb(*this) : this->def;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user