mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
[Client] Differentiate itemPtr from actor Ptr in DedicatedPlayer method
This fixes a mistake from 8f7da49152
This commit is contained in:
parent
5466092582
commit
cd1fc590a7
1 changed files with 4 additions and 4 deletions
|
@ -335,12 +335,12 @@ void DedicatedPlayer::setEquipment()
|
||||||
const int count = equipmentItems[slot].count;
|
const int count = equipmentItems[slot].count;
|
||||||
ptr.getClass().getContainerStore(ptr).add(dedicItem, count, ptr);
|
ptr.getClass().getContainerStore(ptr).add(dedicItem, count, ptr);
|
||||||
|
|
||||||
for (const auto &ptr : invStore)
|
for (const auto &itemPtr : invStore)
|
||||||
{
|
{
|
||||||
if (::Misc::StringUtils::ciEqual(ptr.getCellRef().getRefId(), dedicItem)) // equip item
|
if (::Misc::StringUtils::ciEqual(itemPtr.getCellRef().getRefId(), dedicItem)) // equip item
|
||||||
{
|
{
|
||||||
std::shared_ptr<MWWorld::Action> action = ptr.getClass().use(ptr);
|
std::shared_ptr<MWWorld::Action> action = itemPtr.getClass().use(itemPtr);
|
||||||
action->execute(this->ptr);
|
action->execute(ptr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue