mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 18:02:37 +01:00
Codechange: Use template specialisation and instantiation for BaseMedia methods.
Specialisations seem to be the correct way to specialise, rather than redefining the base template. This removes a macro which instantiated methods individually.
This commit is contained in:
committed by
Peter Nelson
parent
3375dc3095
commit
529fb88325
@@ -407,7 +407,7 @@ bool HandleBootstrap()
|
||||
if (_exit_game) return false;
|
||||
|
||||
/* Try to probe the graphics. Should work this time. */
|
||||
if (!BaseGraphics::SetSet({})) goto failure;
|
||||
if (!BaseGraphics::SetSet(nullptr)) goto failure;
|
||||
|
||||
/* Finally we can continue heading for the menu. */
|
||||
_game_mode = GM_MENU;
|
||||
|
||||
Reference in New Issue
Block a user