{"action":"opened","issue":{"url":"https://api.github.com/repos/OregonCore/OregonCore/issues/2","labels_url":"https://api.github.com/repos/OregonCore/OregonCore/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/OregonCore/OregonCore/issues/2/comments","events_url":"https://api.github.com/repos/OregonCore/OregonCore/issues/2/events","html_url":"https://github.com/OregonCore/OregonCore/issues/2","id":125531678,"number":2,"title":"Save interface (needs to be added to all instances) (BB #2)","user":{"login":"OregonAsari","id":16568392,"avatar_url":"https://avatars.githubusercontent.com/u/16568392?v=3","gravatar_id":"","url":"https://api.github.com/users/OregonAsari","html_url":"https://github.com/OregonAsari","followers_url":"https://api.github.com/users/OregonAsari/followers","following_url":"https://api.github.com/users/OregonAsari/following{/other_user}","gists_url":"https://api.github.com/users/OregonAsari/gists{/gist_id}","starred_url":"https://api.github.com/users/OregonAsari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OregonAsari/subscriptions","organizations_url":"https://api.github.com/users/OregonAsari/orgs","repos_url":"https://api.github.com/users/OregonAsari/repos","events_url":"https://api.github.com/users/OregonAsari/events{/privacy}","received_events_url":"https://api.github.com/users/OregonAsari/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OregonCore/OregonCore/labels/migrated","name":"migrated","color":"ededed"},{"url":"https://api.github.com/repos/OregonCore/OregonCore/labels/Priority:%20Medium","name":"Priority: Medium","color":"bfd4f2"},{"url":"https://api.github.com/repos/OregonCore/OregonCore/labels/Type:%20Bug","name":"Type: Bug","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-08T02:53:31Z","updated_at":"2016-01-08T02:53:32Z","closed_at":"2016-01-08T02:53:32Z","body":"This issue was migrated from bitbucket.\n**Original Reporter:** \n**Original Date:** 08.01.2010 22:19:11 GMT+0000\n**Original Priority:** major\n**Original Type:** bug\n**Original State:** resolved\n**Direct Link:** https://bitbucket.org/oregon/oregoncore/issues/2\n<hr>\nProper instance reload after crashif(pInstance)        {            // Not in progress            pInstance->SetData(DATA_SHADEOFARAN_EVENT, NOT_STARTED);            if(GameObject* Door = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_GAMEOBJECT_LIBRARY_DOOR)))                Door->SetGoState(0);        }You have tu add a check before setting the event data to NOT_STARTED.if(pInstance)        {            if(m_creature->isAlive())            {                // Not in progress                pInstance->SetData(DATA_SHADEOFARAN_EVENT, NOT_STARTED);            }            if(GameObject* Door = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_GAMEOBJECT_LIBRARY_DOOR)))                Door->SetGoState(0);        }To be implement in all instances :)"}}