(svn r12601) -Fix (r12587): do not reset the index of orders (causes loading ancient savegames to loop infinitively.
authorrubidium
Mon, 07 Apr 2008 11:45:53 +0000
changeset 9345 8b27a1f9387b
parent 9344 1be7ac6bd504
child 9346 6ef92fad565e
(svn r12601) -Fix (r12587): do not reset the index of orders (causes loading ancient savegames to loop infinitively.
src/order_cmd.cpp
--- a/src/order_cmd.cpp	Mon Apr 07 08:59:04 2008 +0000
+++ b/src/order_cmd.cpp	Mon Apr 07 11:45:53 2008 +0000
@@ -146,7 +146,6 @@
 	this->flags   = GB(packed,  8,  8);
 	this->dest    = GB(packed, 16, 16);
 	this->next    = NULL;
-	this->index   = 0; // avoid compiler warning
 	this->refit_cargo   = CT_NO_REFIT;
 	this->refit_subtype = 0;
 	this->wait_time     = 0;