mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00: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:
+1
-1
@@ -154,7 +154,7 @@ struct IConsoleWindow : Window
|
||||
int line_offset;
|
||||
int cursor_width;
|
||||
|
||||
IConsoleWindow() : Window(&_console_window_desc)
|
||||
IConsoleWindow() : Window(_console_window_desc)
|
||||
{
|
||||
_iconsole_mode = ICONSOLE_OPENED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user