| 283 | } |
| 284 | |
| 285 | static void SetDescID(EntityDescription* desc, int id) { |
| 286 | EntityDescriptionField* edf = desc->GetEditableField(EDF_ID); |
| 287 | if (edf) { |
| 288 | edf->data.clear(); |
| 289 | edf->WriteInt(id); |
| 290 | } else { |
| 291 | LOGE << "EDF_ID object returned is NULL, unexpected behaviour" << std::endl; |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | static void FixDuplicateIDs(EntityDescriptionList* desc_list, bool has_terrain) { |
| 296 | std::vector<IDAndType> id_used; |
no test coverage detected