src/order_cmd.cpp
changeset 10751 ebd94f2d6385
parent 10706 2526a335ff62
child 10775 7061477bfbcf
equal deleted inserted replaced
10749:b8ac8a8e27c4 10751:ebd94f2d6385
  1834 static void Load_ORDR()
  1834 static void Load_ORDR()
  1835 {
  1835 {
  1836 	if (CheckSavegameVersionOldStyle(5, 2)) {
  1836 	if (CheckSavegameVersionOldStyle(5, 2)) {
  1837 		/* Version older than 5.2 did not have a ->next pointer. Convert them
  1837 		/* Version older than 5.2 did not have a ->next pointer. Convert them
  1838 		    (in the old days, the orderlist was 5000 items big) */
  1838 		    (in the old days, the orderlist was 5000 items big) */
  1839 		uint len = SlGetFieldLength();
  1839 		size_t len = SlGetFieldLength();
  1840 		uint i;
  1840 		uint i;
  1841 
  1841 
  1842 		if (CheckSavegameVersion(5)) {
  1842 		if (CheckSavegameVersion(5)) {
  1843 			/* Pre-version 5 had an other layout for orders
  1843 			/* Pre-version 5 had an other layout for orders
  1844 			    (uint16 instead of uint32) */
  1844 			    (uint16 instead of uint32) */