summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-11-03 20:23:51 +0000
committerfrosch <frosch@openttd.org>2008-11-03 20:23:51 +0000
commite1bf231727486f906aa28b361e2d7b87a6f475ad (patch)
tree88d9bca8db0ce76fa6e5960e242d5731c502a773 /src
parentec4b30f9d919d3bb4425920fed9941ea853617ba (diff)
downloadopenttd-e1bf231727486f906aa28b361e2d7b87a6f475ad.tar.xz
(svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved.
Diffstat (limited to 'src')
-rw-r--r--src/industry_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index ebc13dfed..a9e73e270 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -2089,8 +2089,8 @@ static void ChangeIndustryProduction(Industry *i, bool monthly)
case 0xE: // increment production
increment = res == 0x0D ? -1 : 1;
break;
- case 0xF: // Set production to higher word of register 0x100
- i->prod_level = Clamp(GB(GetRegister(0x100), 16, 16), PRODLEVEL_MINIMUM, PRODLEVEL_MAXIMUM);
+ case 0xF: // Set production to third byte of register 0x100
+ i->prod_level = Clamp(GB(GetRegister(0x100), 16, 8), PRODLEVEL_MINIMUM, PRODLEVEL_MAXIMUM);
break;
}
}