summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-05-17 17:18:07 +0000
committerfrosch <frosch@openttd.org>2014-05-17 17:18:07 +0000
commit2a4f0fb67df748992213cd620c65ba8beaa5bd4e (patch)
tree16a49507a4ee9a28caef3a5b5ce0e87b949569a7 /src
parentfb63f7a3ef0d078ade94c3e312680e48c61db817 (diff)
downloadopenttd-2a4f0fb67df748992213cd620c65ba8beaa5bd4e.tar.xz
(svn r26593) -Fix: Goals were saved/loaded with incorrect size.
Diffstat (limited to 'src')
-rw-r--r--src/saveload/goal_sl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/goal_sl.cpp b/src/saveload/goal_sl.cpp
index c415d8ba4..4d1441787 100644
--- a/src/saveload/goal_sl.cpp
+++ b/src/saveload/goal_sl.cpp
@@ -17,8 +17,8 @@
#include "../safeguards.h"
static const SaveLoad _goals_desc[] = {
- SLE_VAR(Goal, company, SLE_UINT16),
- SLE_VAR(Goal, type, SLE_UINT16),
+ SLE_VAR(Goal, company, SLE_FILE_U16 | SLE_VAR_U8),
+ SLE_VAR(Goal, type, SLE_FILE_U16 | SLE_VAR_U8),
SLE_VAR(Goal, dst, SLE_UINT32),
SLE_STR(Goal, text, SLE_STR | SLF_ALLOW_CONTROL, 0),
SLE_CONDSTR(Goal, progress, SLE_STR | SLF_ALLOW_CONTROL, 0, 182, SL_MAX_VERSION),