|
@@ -1362,7 +1362,7 @@ public abstract class Inventory extends ItemContainer
|
|
con = L2DatabaseFactory.getInstance().getConnection();
|
|
con = L2DatabaseFactory.getInstance().getConnection();
|
|
PreparedStatement statement = con.prepareStatement(
|
|
PreparedStatement statement = con.prepareStatement(
|
|
"SELECT object_id, item_id, count, enchant_level, loc, loc_data, custom_type1, custom_type2, mana_left FROM items WHERE owner_id=? AND (loc=? OR loc=?) ");
|
|
"SELECT object_id, item_id, count, enchant_level, loc, loc_data, custom_type1, custom_type2, mana_left FROM items WHERE owner_id=? AND (loc=? OR loc=?) ");
|
|
- statement.setInt(1, getOwner().getObjectId());
|
|
|
|
|
|
+ statement.setInt(1, getOwnerId());
|
|
statement.setString(2, getBaseLocation().name());
|
|
statement.setString(2, getBaseLocation().name());
|
|
statement.setString(3, getEquipLocation().name());
|
|
statement.setString(3, getEquipLocation().name());
|
|
ResultSet inv = statement.executeQuery();
|
|
ResultSet inv = statement.executeQuery();
|
|
@@ -1370,7 +1370,7 @@ public abstract class Inventory extends ItemContainer
|
|
L2ItemInstance item;
|
|
L2ItemInstance item;
|
|
while (inv.next())
|
|
while (inv.next())
|
|
{
|
|
{
|
|
- item = L2ItemInstance.restoreFromDb(getOwner().getObjectId(), inv);
|
|
|
|
|
|
+ item = L2ItemInstance.restoreFromDb(getOwnerId(), inv);
|
|
if (item == null) continue;
|
|
if (item == null) continue;
|
|
|
|
|
|
if(getOwner() instanceof L2PcInstance)
|
|
if(getOwner() instanceof L2PcInstance)
|