mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Take into account world object's item if it has one for TS
This might break some pre-existing combines ...
This commit is contained in:
parent
1f065d7d3d
commit
7cedbb0b16
@ -272,6 +272,12 @@ void Object::HandleCombine(Client* user, const NewCombine_Struct* in_combine, Ob
|
||||
c_type = worldo->m_type;
|
||||
inst = worldo->m_inst;
|
||||
worldcontainer=true;
|
||||
// if we're a world container with an item, use that too
|
||||
if (inst) {
|
||||
const EQEmu::ItemData* item = inst->GetItem();
|
||||
if (item)
|
||||
some_id = item->ID;
|
||||
}
|
||||
}
|
||||
else {
|
||||
inst = user_inv.GetItem(in_combine->container_slot);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user