[Cleanup] Remove redundant check in Object::HandleCombine (#4041)

Some minor formatting updates.
This commit is contained in:
JJ 2024-02-03 17:07:43 -05:00 committed by GitHub
parent 175f2b16f5
commit 029581772d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -372,7 +372,7 @@ void Object::HandleCombine(Client* user, const NewCombine_Struct* in_combine, Ob
LogTradeskillsDetail("Check 1");
const EQ::ItemInstance* inst = container->GetItem(0);
if (inst && inst->GetOrnamentationIcon() && inst->GetOrnamentationIcon()) {
if (inst && inst->GetOrnamentationIcon()) {
const EQ::ItemData* new_weapon = inst->GetItem();
user->DeleteItemInInventory(EQ::InventoryProfile::CalcSlotId(in_combine->container_slot, 0), 0, true);
container->Clear();