mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-20 14:09:19 +00:00
(svn r8637) -Fix: CTRL-clicking on a hangar in the order list segfaulted as hangars are part of a station instead of real depots.
This commit is contained in:
parent
6bbbedc8cc
commit
3d04e8f64d
@ -464,7 +464,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
switch (ord->type) {
|
||||
case OT_GOTO_STATION: xy = GetStation(ord->dest)->xy ; break;
|
||||
case OT_GOTO_DEPOT: xy = GetDepot(ord->dest)->xy; break;
|
||||
case OT_GOTO_DEPOT: xy = (v->type == VEH_Aircraft) ? GetStation(ord->dest)->xy : GetDepot(ord->dest)->xy; break;
|
||||
case OT_GOTO_WAYPOINT: xy = GetWaypoint(ord->dest)->xy; break;
|
||||
default: xy = 0; break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user