mirror of https://github.com/OpenTTD/OpenTTD
Fix: virtual call from constructor
That fills an instance variable that is only read from the Game Options window and that is overwritten when the video driver is started. Since you cannot get into the Game Options window without starting the video driver, it is just pointless and wrong code that would never be noticed by the end user.pull/10326/head
parent
c1ff471c77
commit
0251786f46
|
@ -17,7 +17,7 @@
|
|||
/** The SDL video driver. */
|
||||
class VideoDriver_SDL_Base : public VideoDriver {
|
||||
public:
|
||||
VideoDriver_SDL_Base() : sdl_window(nullptr), buffer_locked(false), driver_info(this->GetName()) {}
|
||||
VideoDriver_SDL_Base() : sdl_window(nullptr), buffer_locked(false) {}
|
||||
|
||||
const char *Start(const StringList ¶m) override;
|
||||
|
||||
|
@ -41,8 +41,6 @@ public:
|
|||
|
||||
std::vector<int> GetListOfMonitorRefreshRates() override;
|
||||
|
||||
const char *GetName() const override { return "sdl"; }
|
||||
|
||||
const char *GetInfoString() const override { return this->driver_info.c_str(); }
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue