(svn r1575) -Fix: Forgot to exit the construction phase for the waypoint window (if

you have newgrfs loaded)
This commit is contained in:
Celestar 2005-01-20 10:31:59 +00:00
parent f8345b3fe6
commit 1af764c4d0
1 changed files with 5 additions and 2 deletions

View File

@ -819,12 +819,11 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) {
}
CheckRedrawStationCoverage(w);
} break;
case WE_DESTROY:
ResetObjectToPlace();
break;
}
}
static const Widget _station_builder_widgets[] = {
@ -978,6 +977,10 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e)
if (WP(w,def_d).close)
DeleteWindow(w);
return;
case WE_DESTROY:
ResetObjectToPlace();
break;
}
}