mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
[Client] Update inventory views when receiving inventory or equipment
This commit is contained in:
parent
bb15ee9215
commit
9165b12d78
1 changed files with 4 additions and 0 deletions
|
@ -694,6 +694,8 @@ void LocalPlayer::addItems()
|
||||||
LOG_APPEND(Log::LOG_INFO, "- Ignored addition of invalid inventory item %s", item.refId.c_str());
|
LOG_APPEND(Log::LOG_INFO, "- Ignored addition of invalid inventory item %s", item.refId.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updateItemView();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalPlayer::addSpells()
|
void LocalPlayer::addSpells()
|
||||||
|
@ -1079,6 +1081,8 @@ void LocalPlayer::setEquipment()
|
||||||
else
|
else
|
||||||
ptrInventory.unequipSlot(slot, ptrPlayer);
|
ptrInventory.unequipSlot(slot, ptrPlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->updatePlayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalPlayer::setInventory()
|
void LocalPlayer::setInventory()
|
||||||
|
|
Loading…
Reference in a new issue