diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-12 19:57:08 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-04-12 21:14:01 +0200 |
commit | 64e830587455a3baa0354f550ce9b179a070215e (patch) | |
tree | 2b20254568964431a7a9b4110eee9b103e16da7a | |
parent | 4fb1e34b1ed84d228ce5d88abe9a78437a3760d3 (diff) | |
download | openttd-64e830587455a3baa0354f550ce9b179a070215e.tar.xz |
Fix: [SDL] buffer_locked state not initialised, causing _screen.dst_ptr to be potentially not set
-rw-r--r-- | src/video/sdl2_v.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h index bd43f71f8..d706cc665 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -17,7 +17,7 @@ /** The SDL video driver. */ class VideoDriver_SDL_Base : public VideoDriver { public: - VideoDriver_SDL_Base() : sdl_window(nullptr) {} + VideoDriver_SDL_Base() : sdl_window(nullptr), buffer_locked(false) {} const char *Start(const StringList ¶m) override; |