mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 17:26:30 +00:00
Merge pull request #78 from Valorith/codex/groundspawn-charge-desync-fix
[Bug Fix] Fix groundspawn Pickup Desync and Boost header linkage
This commit is contained in:
+3
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user