Skip to content

Commit a42d88d

Browse files
authored
fix: vehicle export no longer includes door locks (#8288)
1 parent 7a76fa9 commit a42d88d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vehicle_export.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ auto json_part_write( JsonOut &json, const vehicle_part *p ) -> void
3939
const auto &id = p->info().get_id();
4040
const auto &ammo_type = p->ammo_current();
4141

42+
if( id == vpart_id( "door_lock" ) ) {
43+
return;
44+
}
4245
json.member( "part", id );
4346
if( p->is_tank() ) {
4447
json.member( "fuel", ammo_type );

0 commit comments

Comments
 (0)