From 55423efb0687d937256d17ad267fce67ed9bf5cf Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 30 May 2005 22:16:05 +0000 Subject: (svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big. - Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types. --- engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine.c') diff --git a/engine.c b/engine.c index f06d958b1..de1f4a089 100644 --- a/engine.c +++ b/engine.c @@ -927,7 +927,7 @@ int GetPlayerMaxRailtype(int p) } -static const byte _engine_desc[] = { +static const SaveLoad _engine_desc[] = { SLE_VAR(Engine,intro_date, SLE_UINT16), SLE_VAR(Engine,age, SLE_UINT16), SLE_VAR(Engine,reliability, SLE_UINT16), -- cgit v1.2.3-54-g00ecf