Fixed references to getEquipmentList - might fix crashing

This commit is contained in:
Seefo
2014-05-06 20:55:15 -04:00
parent 4e36321ca3
commit b714ea093d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1213,7 +1213,7 @@ public class PlayerService implements INetworkDispatch {
// need to set a unity attachment.
ringList.get(0).setAttachment("unity", (Boolean) true);
if(!acceptor.getEquipmentList().contains(ringList.get(0)))
if(!acceptor.getEquipmentList().contains(ringList.get(0).getObjectId()))
core.equipmentService.equip(acceptor, ringList.get(0));
aGhost.setSpouseName(proposer.getCustomName());
@@ -1248,7 +1248,7 @@ public class PlayerService implements INetworkDispatch {
SWGObject selectedRing = core.objectService.getObject(ringWindow.getObjectIdByIndex(index));
selectedRing.setAttachment("unity", (Boolean) true);
if(!actor.getEquipmentList().contains(selectedRing))
if(!actor.getEquipmentList().contains(selectedRing.getObjectId()))
core.equipmentService.equip(actor, selectedRing);
PlayerObject aGhost = (PlayerObject) actor.getSlottedObject("ghost");