diff options
author | rubidium <rubidium@openttd.org> | 2007-10-07 08:48:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-07 08:48:31 +0000 |
commit | 1bf8d64eb8105361c32a4ec617d45e47ee3acd3e (patch) | |
tree | 92e6bf4f45b273b79d2551f35cf0e3262b2eeb75 /src | |
parent | 69bb22b919b30f5989d38ad046fe73c675857994 (diff) | |
download | openttd-1bf8d64eb8105361c32a4ec617d45e47ee3acd3e.tar.xz |
(svn r11224) -Fix: GRM for cargos has registration entries for both cargo IDs and cargo bitmasks, not only cargo IDs.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 9d8004428..fb24a9637 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; |