mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
(svn r15125) -Fix [FS#2544]: Do not try to determine the next order destination, if there are no orders.
This commit is contained in:
parent
4bc7afae41
commit
2850bf9e00
@ -2839,6 +2839,8 @@ public:
|
||||
*/
|
||||
bool SwitchToNextOrder(bool skip_first)
|
||||
{
|
||||
if (this->v->GetNumOrders() == 0) return false;
|
||||
|
||||
if (skip_first) ++this->index;
|
||||
|
||||
int conditional_depth = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user