From b8bd791d761160ca8deec55fbcdbadc6bffe2935 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 7 Oct 2007 08:48:31 +0000 Subject: [PATCH] (svn r11224) -Fix: GRM for cargos has registration entries for both cargo IDs and cargo bitmasks, not only cargo IDs. --- src/newgrf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 9d8004428e..fb24a9637a 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4060,7 +4060,8 @@ static void ParamSet(byte *buf, int len) break; case 0x0B: // Cargo - src1 = PerformGRM(_grm_cargos, NUM_CARGO, count, op, target, "cargos"); + /* There are two ranges: one for cargo IDs and one for cargo bitmasks */ + src1 = PerformGRM(_grm_cargos, NUM_CARGO * 2, count, op, target, "cargos"); if (_skip_sprites == -1) return; break;