1
0
Fork 0

(svn r15125) -Fix [FS#2544]: Do not try to determine the next order destination, if there are no orders.

release/0.7
frosch 2009-01-17 16:25:32 +00:00
parent 4bc7afae41
commit 2850bf9e00
1 changed files with 2 additions and 0 deletions

View File

@ -2839,6 +2839,8 @@ public:
*/ */
bool SwitchToNextOrder(bool skip_first) bool SwitchToNextOrder(bool skip_first)
{ {
if (this->v->GetNumOrders() == 0) return false;
if (skip_first) ++this->index; if (skip_first) ++this->index;
int conditional_depth = 0; int conditional_depth = 0;