(svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved.
authorfrosch
Mon, 03 Nov 2008 20:23:51 +0000
changeset 10317 a904407b644f
parent 10316 37b1ccb862b9
child 10318 d436fee569bf
(svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved.
src/industry_cmd.cpp
--- a/src/industry_cmd.cpp	Mon Nov 03 19:25:52 2008 +0000
+++ b/src/industry_cmd.cpp	Mon Nov 03 20:23:51 2008 +0000
@@ -2089,8 +2089,8 @@
 				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;
 			}
 		}