mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-28 01:26:32 +00:00
Typo in NsConcertInstruments
This commit is contained in:
parent
c2c8cf9767
commit
27edf5da1d
@ -195,7 +195,7 @@ void NsConcertInstrument::EquipInstruments(Entity *self, Entity *player) {
|
|||||||
// Equip the left hand instrument
|
// Equip the left hand instrument
|
||||||
const auto leftInstrumentLot = instrumentLotLeft.find(GetInstrumentLot(self))->second;
|
const auto leftInstrumentLot = instrumentLotLeft.find(GetInstrumentLot(self))->second;
|
||||||
if (leftInstrumentLot != LOT_NULL) {
|
if (leftInstrumentLot != LOT_NULL) {
|
||||||
inventory->AddItem(leftInstrumentLot, 1, eLootSourceType::LOOT_SOURCE_ACTIVITY);
|
inventory->AddItem(leftInstrumentLot, 1, eLootSourceType::LOOT_SOURCE_NONE, TEMP_ITEMS, {}, LWOOBJID_EMPTY, false);
|
||||||
auto* leftInstrument = inventory->FindItemByLot(leftInstrumentLot, TEMP_ITEMS);
|
auto* leftInstrument = inventory->FindItemByLot(leftInstrumentLot, TEMP_ITEMS);
|
||||||
leftInstrument->Equip();
|
leftInstrument->Equip();
|
||||||
}
|
}
|
||||||
@ -203,7 +203,7 @@ void NsConcertInstrument::EquipInstruments(Entity *self, Entity *player) {
|
|||||||
// Equip the right hand instrument
|
// Equip the right hand instrument
|
||||||
const auto rightInstrumentLot = instrumentLotRight.find(GetInstrumentLot(self))->second;
|
const auto rightInstrumentLot = instrumentLotRight.find(GetInstrumentLot(self))->second;
|
||||||
if (rightInstrumentLot != LOT_NULL) {
|
if (rightInstrumentLot != LOT_NULL) {
|
||||||
inventory->AddItem(rightInstrumentLot, 1, eLootSourceType::LOOT_SOURCE_ACTIVITY);
|
inventory->AddItem(rightInstrumentLot, 1, eLootSourceType::LOOT_SOURCE_NONE, TEMP_ITEMS, {}, LWOOBJID_EMPTY, false);
|
||||||
auto* rightInstrument = inventory->FindItemByLot(rightInstrumentLot, TEMP_ITEMS);
|
auto* rightInstrument = inventory->FindItemByLot(rightInstrumentLot, TEMP_ITEMS);
|
||||||
rightInstrument->Equip();
|
rightInstrument->Equip();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user