forked from mirror/OpenTTD
Fix: [SDL] buffer_locked state not initialised, causing _screen.dst_ptr to be potentially not set
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
/** The SDL video driver. */
|
/** The SDL video driver. */
|
||||||
class VideoDriver_SDL_Base : public VideoDriver {
|
class VideoDriver_SDL_Base : public VideoDriver {
|
||||||
public:
|
public:
|
||||||
VideoDriver_SDL_Base() : sdl_window(nullptr) {}
|
VideoDriver_SDL_Base() : sdl_window(nullptr), buffer_locked(false) {}
|
||||||
|
|
||||||
const char *Start(const StringList ¶m) override;
|
const char *Start(const StringList ¶m) override;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user