Fixed waypoint not being destroyed for quests

This commit is contained in:
Waverunner
2014-08-26 16:16:52 -04:00
parent e7fa4f76eb
commit 3cad7bf212
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -665,7 +665,8 @@ public class ObjectService implements INetworkDispatch {
parent.remove(object);
object.setParentId(parentId);
} else {
core.simulationService.remove(object, object.getWorldPosition().x, object.getWorldPosition().z, true);
if (!(object instanceof WaypointObject))
core.simulationService.remove(object, object.getWorldPosition().x, object.getWorldPosition().z, true);
}
@SuppressWarnings("unchecked") Vector<SWGObject> childObjects = (Vector<SWGObject>) object.getAttachment("childObjects");
if(childObjects != null)