summaryrefslogtreecommitdiff
path: root/order.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-10-08 20:54:27 +0000
committerbjarni <bjarni@openttd.org>2006-10-08 20:54:27 +0000
commit73f1ffe84fd02a169e2f21c92e3d6d019cf226dd (patch)
tree34fda859aaefb3614ee685c534469ee16fedbdce /order.h
parent2c6aad5f2de80727d62220a2d42d39a494af8c4c (diff)
downloadopenttd-73f1ffe84fd02a169e2f21c92e3d6d019cf226dd.tar.xz
(svn r6694) -Fix: FS#361 Refit-to Order bug (only one of the two bugs mentioned there)
-Now refit orders are copied when copying orders -Fixed an initilation issue where CT_INVALID was used instead of CT_NO_REFIT (resulted in crashes in the order window) -Fixed a compiler warning in the function to load TTD savegames
Diffstat (limited to 'order.h')
-rw-r--r--order.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/order.h b/order.h
index 43b8e9c71..8f2a1ba18 100644
--- a/order.h
+++ b/order.h
@@ -191,7 +191,7 @@ static inline Order UnpackOrder(uint32 packed)
order.dest = GB(packed, 16, 16);
order.next = NULL;
order.index = 0; // avoid compiler warning
- order.refit_cargo = CT_INVALID;
+ order.refit_cargo = CT_NO_REFIT;
order.refit_subtype = 0;
return order;
}