{"action":"created","issue":{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3649","repository_url":"https://api.github.com/repos/pioneerspacesim/pioneer","labels_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3649/labels{/name}","comments_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3649/comments","events_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3649/events","html_url":"https://github.com/pioneerspacesim/pioneer/pull/3649","id":140193262,"number":3649,"title":"Release discarded_ships on entering or leaving systems","user":{"login":"fluffyfreak","id":825083,"avatar_url":"https://avatars.githubusercontent.com/u/825083?v=3","gravatar_id":"","url":"https://api.github.com/users/fluffyfreak","html_url":"https://github.com/fluffyfreak","followers_url":"https://api.github.com/users/fluffyfreak/followers","following_url":"https://api.github.com/users/fluffyfreak/following{/other_user}","gists_url":"https://api.github.com/users/fluffyfreak/gists{/gist_id}","starred_url":"https://api.github.com/users/fluffyfreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluffyfreak/subscriptions","organizations_url":"https://api.github.com/users/fluffyfreak/orgs","repos_url":"https://api.github.com/users/fluffyfreak/repos","events_url":"https://api.github.com/users/fluffyfreak/events{/privacy}","received_events_url":"https://api.github.com/users/fluffyfreak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/labels/WIP","name":"WIP","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-11T14:12:20Z","updated_at":"2016-03-20T11:43:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/pulls/3649","html_url":"https://github.com/pioneerspacesim/pioneer/pull/3649","diff_url":"https://github.com/pioneerspacesim/pioneer/pull/3649.diff","patch_url":"https://github.com/pioneerspacesim/pioneer/pull/3649.patch"},"body":"This does three things :\r\n- use nil instead of \"NIL\"\r\n- release any discarded_ships when entering or leaving a system\r\n- check that we have a target before trying to use it\r\n\r\nThe first is just me being pedantic, the second I think fixes the problem but may have side effects, and the third stops it crashing which is one of the side effects.\r\n\r\n@clausimu this is your baby I just got distracted by it so if you could take a look and tell me what you think then that'd be great :)"},"comment":{"url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/comments/198909765","html_url":"https://github.com/pioneerspacesim/pioneer/pull/3649#issuecomment-198909765","issue_url":"https://api.github.com/repos/pioneerspacesim/pioneer/issues/3649","id":198909765,"user":{"login":"fluffyfreak","id":825083,"avatar_url":"https://avatars.githubusercontent.com/u/825083?v=3","gravatar_id":"","url":"https://api.github.com/users/fluffyfreak","html_url":"https://github.com/fluffyfreak","followers_url":"https://api.github.com/users/fluffyfreak/followers","following_url":"https://api.github.com/users/fluffyfreak/following{/other_user}","gists_url":"https://api.github.com/users/fluffyfreak/gists{/gist_id}","starred_url":"https://api.github.com/users/fluffyfreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluffyfreak/subscriptions","organizations_url":"https://api.github.com/users/fluffyfreak/orgs","repos_url":"https://api.github.com/users/fluffyfreak/repos","events_url":"https://api.github.com/users/fluffyfreak/events{/privacy}","received_events_url":"https://api.github.com/users/fluffyfreak/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T11:43:21Z","updated_at":"2016-03-20T11:43:21Z","body":"@clausimu any luck looking into this?"}}