diff options
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 1c1453bcf..6f23af3fb 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -255,6 +255,9 @@ public: virtual void OnInvalidateData(int data) { + /* We can only set the trigger for resorting/rebuilding. + * We cannot safely resort at this point, as there might be multiple scheduled invalidations, + * and a rebuild needs to be done first though it is scheduled later. */ if (data == 0) { this->vehicles.ForceRebuild(); this->groups.ForceRebuild(); |