diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-12 20:52:00 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-04-12 21:14:01 +0200 |
commit | 856239541393df6d6a1443b15d7c4c8b213fbc5e (patch) | |
tree | 33170dbd7a29f1a407b3baf9d59662a9b75c4c0b /src/video | |
parent | 64e830587455a3baa0354f550ce9b179a070215e (diff) | |
download | openttd-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.hpp | 2 |
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. |