src/depot_gui.cpp
changeset 9343 3875a510b0ba
parent 9317 f14eb8815829
child 9344 d3b1b1fbbad9
equal deleted inserted replaced
9342:6daf441eee26 9343:3875a510b0ba
   877 
   877 
   878 	virtual void OnDragDrop(Point pt, int widget)
   878 	virtual void OnDragDrop(Point pt, int widget)
   879 	{
   879 	{
   880 		switch (widget) {
   880 		switch (widget) {
   881 			case DEPOT_WIDGET_MATRIX: {
   881 			case DEPOT_WIDGET_MATRIX: {
   882 				Vehicle *v;
   882 				Vehicle *v = NULL;
   883 				VehicleID sel = this->sel;
   883 				VehicleID sel = this->sel;
   884 
   884 
   885 				this->sel = INVALID_VEHICLE;
   885 				this->sel = INVALID_VEHICLE;
   886 				this->SetDirty();
   886 				this->SetDirty();
   887 
   887