summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-12 20:58:44 +0200
committerPatric Stout <github@truebrain.nl>2021-04-12 21:14:01 +0200
commit468b1c6c5d1949f4d8aad90dad0f3d8770973113 (patch)
tree75b6d285ec52e533ffa48fc91c1f3d2b3cb4225a /src/video
parent856239541393df6d6a1443b15d7c4c8b213fbc5e (diff)
downloadopenttd-468b1c6c5d1949f4d8aad90dad0f3d8770973113.tar.xz
Fix: [win32] buffer_locked state not initialised, causing _screen.dst_ptr to be potentially not set
Diffstat (limited to 'src/video')
-rw-r--r--src/video/win32_v.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/win32_v.h b/src/video/win32_v.h
index 8c63aeedf..4686df716 100644
--- a/src/video/win32_v.h
+++ b/src/video/win32_v.h
@@ -17,7 +17,7 @@
/** Base class for Windows video drivers. */
class VideoDriver_Win32Base : public VideoDriver {
public:
- VideoDriver_Win32Base() : main_wnd(nullptr), fullscreen(false) {}
+ VideoDriver_Win32Base() : main_wnd(nullptr), fullscreen(false), buffer_locked(false) {}
void Stop() override;