(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
This commit is contained in:
bjarni
2006-10-08 20:54:27 +00:00
parent 2c6aad5f2d
commit 73f1ffe84f
2 changed files with 10 additions and 7 deletions

View File

@@ -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;
}