This commit is contained in:
aozhiwei 2019-08-01 17:19:13 +08:00
parent 5c65a4b41b
commit c25bb87fc1

View File

@ -99,12 +99,12 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
for (size_t idx : hum->chged_inventorys_) {
if (idx < room->frame_event.chged_inventorys_.size()) {
Human* target = room->frame_event.chged_inventorys_[idx];
{
if (target->curr_weapon) {
auto p = msg->add_chged_property_list();
p->set_obj_id(target->entity_uniid);
p->set_property_type(kPropInventory);
p->set_property_subtype(kWEAPON_SLOT);
p->set_value(target->GetInventory(kWEAPON_SLOT));
p->set_value(target->curr_weapon->ammo);
}
}
}