Changeset - r27962:3e0ef7401ea8
[Not reviewed]
master
0 1 0
PeterN - 15 months ago 2023-09-21 06:42:49
peter1138@openttd.org
Fix #11326: Update autoreplace scrollbar count after clearing engine list. (#11327)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/autoreplace_gui.cpp
Show inline comments
 
@@ -229,6 +229,7 @@ class ReplaceVehicleWindow : public Wind
 
				/* Always empty the right engines list when nothing is selected in the left engines list */
 
				this->engines[1].clear();
 
				this->sel_engine[1] = INVALID_ENGINE;
 
				this->vscroll[1]->SetCount(this->engines[1].size());
 
			} else {
 
				if (this->reset_sel_engine && this->sel_engine[0] != INVALID_ENGINE) {
 
					/* Select the current replacement for sel_engine[0]. */
0 comments (0 inline, 0 general)