mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-21 02:12:27 +00:00
Fix scripted ground object item normalization
This commit is contained in:
parent
510af32dad
commit
4bc73ecb6a
@ -4652,7 +4652,9 @@ uint16 EntityList::CreateGroundObject(uint32 item_id, const glm::vec4& position,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto inst = new EQ::ItemInstance(is, is->MaxCharges);
|
// Route through the shared item factory so stackables and unlimited-use items
|
||||||
|
// get the same charge normalization as other item creation paths.
|
||||||
|
auto inst = database.CreateItem(item_id, is->MaxCharges);
|
||||||
if (!inst) {
|
if (!inst) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user