src/newgrf.cpp
changeset 5593 1921f3ef576a
parent 5590 6a0c2739e124
child 5609 dc6a58930ba4
equal deleted inserted replaced
5592:90d40244b04c 5593:1921f3ef576a
  1074 				byte tableid = grf_load_byte(&buf);
  1074 				byte tableid = grf_load_byte(&buf);
  1075 				byte numtables = grf_load_byte(&buf);
  1075 				byte numtables = grf_load_byte(&buf);
  1076 
  1076 
  1077 				if (bridge->sprite_table == NULL) {
  1077 				if (bridge->sprite_table == NULL) {
  1078 					/* Allocate memory for sprite table pointers and zero out */
  1078 					/* Allocate memory for sprite table pointers and zero out */
  1079 					CallocT(bridge->sprite_table, 7);
  1079 					CallocT(&bridge->sprite_table, 7);
  1080 				}
  1080 				}
  1081 
  1081 
  1082 				for (; numtables-- != 0; tableid++) {
  1082 				for (; numtables-- != 0; tableid++) {
  1083 					byte sprite;
  1083 					byte sprite;
  1084 
  1084