# HG changeset patch # User rubidium # Date 1191746911 0 # Node ID 293efb2185a8032e61209b3b77fe87a6ce770a85 # Parent c4d9ea16fdbe7dc6c61a0401774ba7df0b326edf (svn r11224) -Fix: GRM for cargos has registration entries for both cargo IDs and cargo bitmasks, not only cargo IDs. diff -r c4d9ea16fdbe -r 293efb2185a8 src/newgrf.cpp --- a/src/newgrf.cpp Sun Oct 07 01:37:06 2007 +0000 +++ b/src/newgrf.cpp Sun Oct 07 08:48:31 2007 +0000 @@ -4060,7 +4060,8 @@ 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;