summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/saveload/station_sl.cpp3
-rw-r--r--src/station_base.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp
index 4af681ad8..c8fbf1624 100644
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -67,7 +67,8 @@ static const SaveLoad _station_desc[] = {
SLE_VAR(Station, string_id, SLE_STRINGID),
SLE_CONDSTR(Station, name, SLE_STR, 0, 84, SL_MAX_VERSION),
SLE_CONDVAR(Station, indtype, SLE_UINT8, 103, SL_MAX_VERSION),
- SLE_VAR(Station, had_vehicle_of_type, SLE_UINT16),
+ SLE_CONDVAR(Station, had_vehicle_of_type, SLE_FILE_U16 | SLE_VAR_U8, 0, 121),
+ SLE_CONDVAR(Station, had_vehicle_of_type, SLE_UINT8, 122, SL_MAX_VERSION),
SLE_VAR(Station, time_since_load, SLE_UINT8),
SLE_VAR(Station, time_since_unload, SLE_UINT8),
diff --git a/src/station_base.h b/src/station_base.h
index 266f45d19..446f09c87 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -110,7 +110,7 @@ public:
ViewportSign sign;
- uint16 had_vehicle_of_type;
+ byte had_vehicle_of_type;
byte time_since_load;
byte time_since_unload;