diff options
author | PeterN <peter@fuzzle.org> | 2019-02-23 19:19:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-23 19:19:41 +0000 |
commit | 87ebfe1227ecc811a18d9b9c791e3e21da3f5eb2 (patch) | |
tree | 2792f87f0fbcc12ef020a7942ecd708011c54de0 /src/main_gui.cpp | |
parent | f240f61fb2813a7cc3d2ad130477039b2a4701fd (diff) | |
download | openttd-87ebfe1227ecc811a18d9b9c791e3e21da3f5eb2.tar.xz |
Fix #7004: Mark linkgraph dirty to be rebuilt on next draw call. (#7265)
Previously the linkgraph was rebuilt before the viewport extents were finalized.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 43a73f6de..cdd383157 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -267,7 +267,7 @@ struct MainWindow : Window return; } - this->viewport->overlay->RebuildCache(); + this->viewport->overlay->SetDirty(); this->GetWidget<NWidgetBase>(WID_M_VIEWPORT)->SetDirty(this); } |