summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-09 01:06:23 +0000
committerrubidium <rubidium@openttd.org>2009-02-09 01:06:23 +0000
commit66cb1fe1ff78b80f0acebdcadf0818f70090eab1 (patch)
tree3fb8cd8b4041aa509972f5b01531eb874e6c113d /src/saveload
parenta7264bd5aa15e2776a180b403d9d00ed180371eb (diff)
downloadopenttd-66cb1fe1ff78b80f0acebdcadf0818f70090eab1.tar.xz
(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/company_sl.cpp2
-rw-r--r--src/saveload/oldloader_sl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/company_sl.cpp b/src/saveload/company_sl.cpp
index 22930f765..69892890e 100644
--- a/src/saveload/company_sl.cpp
+++ b/src/saveload/company_sl.cpp
@@ -272,7 +272,7 @@ static void Load_PLYR()
while ((index = SlIterateArray()) != -1) {
Company *c = new (index) Company();
SaveLoad_PLYR(c);
- _company_colours[index] = c->colour;
+ _company_colours[index] = (Colours)c->colour;
}
}
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index 6052312b0..9319dfcf5 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -1051,7 +1051,7 @@ static bool LoadOldCompany(LoadgameState *ls, int num)
if (c->money == 893288) c->money = c->current_loan = 100000;
}
- _company_colours[num] = c->colour;
+ _company_colours[num] = (Colours)c->colour;
c->inaugurated_year -= ORIGINAL_BASE_YEAR;
return true;