diff options
author | frosch <frosch@openttd.org> | 2017-02-26 19:39:58 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-02-26 19:39:58 +0000 |
commit | 9ad09627ad03030d39bd07e28c74bf91b83a0f24 (patch) | |
tree | 17e9348027ce501410980cdecc1db8ac22b84a9d /src/saveload/company_sl.cpp | |
parent | b264dd2a8d71ac3fd57398e6cc23af4d5ebde046 (diff) | |
download | openttd-9ad09627ad03030d39bd07e28c74bf91b83a0f24.tar.xz |
(svn r27754) -Codechange: Add GetStringTab(), GetStringIndex() and MakeStringID() to access the structure of StringIDs.
Diffstat (limited to 'src/saveload/company_sl.cpp')
-rw-r--r-- | src/saveload/company_sl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload/company_sl.cpp b/src/saveload/company_sl.cpp index 6ac22c268..ff02167d3 100644 --- a/src/saveload/company_sl.cpp +++ b/src/saveload/company_sl.cpp @@ -16,6 +16,7 @@ #include "../tunnelbridge_map.h" #include "../tunnelbridge.h" #include "../station_base.h" +#include "../strings_func.h" #include "saveload.h" @@ -501,11 +502,11 @@ static void Check_PLYR() /* We do not load old custom names */ if (IsSavegameVersionBefore(84)) { - if (GB(cprops->name_1, 11, 5) == 15) { + if (GetStringTab(cprops->name_1) == 15) { cprops->name_1 = STR_GAME_SAVELOAD_NOT_AVAILABLE; } - if (GB(cprops->president_name_1, 11, 5) == 15) { + if (GetStringTab(cprops->president_name_1) == 15) { cprops->president_name_1 = STR_GAME_SAVELOAD_NOT_AVAILABLE; } } |