@@ -85,16 +85,16 @@ int building_bazaar::max_goods_stock() {
85
85
86
86
bool building_bazaar::is_good_accepted (int index) {
87
87
int goods_bit = 1 << index ;
88
- return !(base. subtype .market_goods & goods_bit);
88
+ return !(data. market .market_goods & goods_bit);
89
89
}
90
90
91
91
void building_bazaar::toggle_good_accepted (int index) {
92
92
int goods_bit = (1 << index );
93
- base. subtype .market_goods ^= goods_bit;
93
+ data. market .market_goods ^= goods_bit;
94
94
}
95
95
96
96
void building_bazaar::unaccept_all_goods () {
97
- base. subtype .market_goods = (short )0xFFFF ;
97
+ data. market .market_goods = (short )0xFFFF ;
98
98
}
99
99
100
100
building *building_bazaar::get_storage_destination () {
@@ -245,7 +245,7 @@ void building_bazaar::update_graphic() {
245
245
}
246
246
247
247
void building_bazaar::on_create (int orientation) {
248
- base. subtype .market_goods = 0 ;
248
+ data. market .market_goods = 0 ;
249
249
base.fancy_state = efancy_normal;
250
250
}
251
251
@@ -317,7 +317,7 @@ bool building_bazaar::draw_ornaments_and_animations_height(painter &ctx, vec2i p
317
317
}
318
318
319
319
void building_bazaar::bind_dynamic (io_buffer *iob, size_t version) {
320
- iob->bind____skip ( 2 );
320
+ iob->bind (BIND_SIGNATURE_INT16, &data. market . market_goods );
321
321
iob->bind (BIND_SIGNATURE_INT16, &data.market .pottery_demand );
322
322
iob->bind (BIND_SIGNATURE_INT16, &data.market .luxurygoods_demand );
323
323
iob->bind (BIND_SIGNATURE_INT16, &data.market .linen_demand );
0 commit comments