From e061107b684c9e318d04ac8fc897431e725865cf Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 3 Nov 2008 20:23:51 +0000 Subject: [PATCH] (svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved. --- src/industry_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index ebc13dfed2..a9e73e270f 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; } }