all: use the function get_item which checks bounds...

This commit is contained in:
ALONSO Laurent
2021-10-19 13:30:06 +02:00
committed by Celtic Minstrel
parent f52c227516
commit 3451c70fec
12 changed files with 32 additions and 40 deletions

View File

@@ -227,8 +227,8 @@ void port_item_list(legacy::scen_item_data_type* old){
if(cur_file_is_mac != is_computer_small_endian)
return;
for(short i = 0; i < 400; i++)
port_item_record(&(old->scen_items[i]));
for(auto &item : old->scen_items)
port_item_record(&item);
}
void port_out(legacy::outdoor_record_type *out) {