mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 09:52:44 +01:00
Codechange: Pass WindowDesc by reference instead of pointer. (#12771)
WindowDesc as passed to Windows is not optional so don't allow to it to be nullptr.
This commit is contained in:
@@ -175,7 +175,7 @@ private:
|
||||
|
||||
public:
|
||||
ErrmsgWindow(const ErrorMessageData &data) :
|
||||
Window(data.HasFace() ? &_errmsg_face_desc : &_errmsg_desc),
|
||||
Window(data.HasFace() ? _errmsg_face_desc : _errmsg_desc),
|
||||
ErrorMessageData(data),
|
||||
display_timeout(std::chrono::seconds(3 * _settings_client.gui.errmsg_duration), [this]() {
|
||||
this->Close();
|
||||
|
||||
Reference in New Issue
Block a user