This commit is contained in:
aozhiwei 2022-08-16 16:16:10 +08:00
parent 72ab8d288b
commit bf82e1d761

View File

@ -547,7 +547,7 @@ void FrameMaker::SerializeChgedCars(cs::SMUpdate* msg, Room* room, Human* hum, F
p->set_obj_id(target.Get()->GetUniId());
p->set_property_type(kPropCar);
if (target.Get()->AsHuman()->GetCar()) {
p->set_property_subtype(target.Get()->AsHuman()->GetCar()->meta->i->id());
p->set_property_subtype(target.Get()->AsHuman()->GetCar()->GetUniId());
p->set_value(target.Get()->AsHuman()->GetSeat());
} else {
p->set_property_subtype(0);