public static void PopulateWorldNode(TreeNode node, int index, objects.ObjectInfo[] objList) { while (index != 0) { TreeNode newnode = node.Nodes.Add(index + ". " + objects.ObjectName(objList[index].item_id, main.curgame)); newnode.Tag = index; if (objects.isContainer(objList[index].item_id)) { PlayerDatUI.PopulateLinkedInventoryNode(newnode, objList[index].link, objList); } index = objList[index].next; //else //{ // PopulateInventoryMagicLink(newnode, index, objList); //} } }