mirror of https://github.com/OpenTTD/OpenTTD
The selected group was not reset when drag&drop was aborted. When after that vehicle drag&drop was successful, group drag&drop code was still executed, causing weird behaviour or even crashes.pull/8515/head
parent
a3a7928372
commit
c988b4d62b
|
@ -981,6 +981,7 @@ public:
|
||||||
/* abort drag & drop */
|
/* abort drag & drop */
|
||||||
this->vehicle_sel = INVALID_VEHICLE;
|
this->vehicle_sel = INVALID_VEHICLE;
|
||||||
this->DirtyHighlightedGroupWidget();
|
this->DirtyHighlightedGroupWidget();
|
||||||
|
this->group_sel = INVALID_GROUP;
|
||||||
this->group_over = INVALID_GROUP;
|
this->group_over = INVALID_GROUP;
|
||||||
this->SetWidgetDirty(WID_GL_LIST_VEHICLE);
|
this->SetWidgetDirty(WID_GL_LIST_VEHICLE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue