mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 21:17:25 +00:00
chore: Fix use of uninitialized variable in RemoveItemFromInventory (#1540)
This commit is contained in:
parent
28ce8ac54d
commit
db192d2cde
@ -4660,7 +4660,7 @@ void GameMessages::HandleBuyFromVendor(RakNet::BitStream& inStream, Entity* enti
|
|||||||
if (!user) return;
|
if (!user) return;
|
||||||
Entity* player = Game::entityManager->GetEntity(user->GetLoggedInChar());
|
Entity* player = Game::entityManager->GetEntity(user->GetLoggedInChar());
|
||||||
if (!player) return;
|
if (!player) return;
|
||||||
|
|
||||||
// handle buying normal items
|
// handle buying normal items
|
||||||
auto* vendorComponent = entity->GetComponent<VendorComponent>();
|
auto* vendorComponent = entity->GetComponent<VendorComponent>();
|
||||||
if (vendorComponent) {
|
if (vendorComponent) {
|
||||||
@ -5290,7 +5290,7 @@ void GameMessages::HandleRemoveItemFromInventory(RakNet::BitStream& inStream, En
|
|||||||
bool iLootTypeSourceIsDefault = false;
|
bool iLootTypeSourceIsDefault = false;
|
||||||
LWOOBJID iLootTypeSource = LWOOBJID_EMPTY;
|
LWOOBJID iLootTypeSource = LWOOBJID_EMPTY;
|
||||||
bool iObjIDIsDefault = false;
|
bool iObjIDIsDefault = false;
|
||||||
LWOOBJID iObjID;
|
LWOOBJID iObjID = LWOOBJID_EMPTY;
|
||||||
bool iObjTemplateIsDefault = false;
|
bool iObjTemplateIsDefault = false;
|
||||||
LOT iObjTemplate = LOT_NULL;
|
LOT iObjTemplate = LOT_NULL;
|
||||||
bool iRequestingObjIDIsDefault = false;
|
bool iRequestingObjIDIsDefault = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user