summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-12 20:52:00 +0200
committerPatric Stout <github@truebrain.nl>2021-04-12 21:14:01 +0200
commit856239541393df6d6a1443b15d7c4c8b213fbc5e (patch)
tree33170dbd7a29f1a407b3baf9d59662a9b75c4c0b /src/video
parent64e830587455a3baa0354f550ce9b179a070215e (diff)
downloadopenttd-856239541393df6d6a1443b15d7c4c8b213fbc5e.tar.xz
Fix: [Video] fast forward boolean states not initialised, potentially causing unstoppable fast forward
Diffstat (limited to 'src/video')
-rw-r--r--src/video/video_driver.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp
index f143b61a8..4964e01cb 100644
--- a/src/video/video_driver.hpp
+++ b/src/video/video_driver.hpp
@@ -36,7 +36,7 @@ class VideoDriver : public Driver {
const uint DEFAULT_WINDOW_HEIGHT = 480u; ///< Default window height.
public:
- VideoDriver() : is_game_threaded(true), change_blitter(nullptr) {}
+ VideoDriver() : fast_forward_key_pressed(false), fast_forward_via_key(false), is_game_threaded(true), change_blitter(nullptr) {}
/**
* Mark a particular area dirty.