summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-30 22:16:05 +0000
committerDarkvater <darkvater@openttd.org>2005-05-30 22:16:05 +0000
commit55423efb0687d937256d17ad267fce67ed9bf5cf (patch)
treea128ca9df2fa6efee823ebaf238898eddb20617b /industry_cmd.c
parent628b1adbd24e1c0753e91030fb2080ca64340719 (diff)
downloadopenttd-55423efb0687d937256d17ad267fce67ed9bf5cf.tar.xz
(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.
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 1b5dfb2b1..441d6447e 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -1945,7 +1945,7 @@ const TileTypeProcs _tile_type_industry_procs = {
GetSlopeTileh_Industry, /* get_slope_tileh_proc */
};
-static const byte _industry_desc[] = {
+static const SaveLoad _industry_desc[] = {
SLE_CONDVAR(Industry, xy, SLE_FILE_U16 | SLE_VAR_U32, 0, 5),
SLE_CONDVAR(Industry, xy, SLE_UINT32, 6, 255),
SLE_VAR(Industry,width, SLE_UINT8),