mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Delete editor before graphics (fixes #881)
This commit is contained in:
parent
4fe6dc51f7
commit
b368234dae
|
@ -2884,6 +2884,7 @@ void CClient::Run()
|
|||
GameClient()->OnShutdown();
|
||||
Disconnect();
|
||||
|
||||
delete m_pEditor;
|
||||
m_pGraphics->Shutdown();
|
||||
|
||||
// shutdown SDL
|
||||
|
@ -3492,7 +3493,7 @@ int main(int argc, const char **argv) // ignore_convention
|
|||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(static_cast<IEngineMasterServer*>(pEngineMasterServer)); // register as both
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(static_cast<IMasterServer*>(pEngineMasterServer), false);
|
||||
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(CreateEditor());
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(CreateEditor(), false);
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(CreateGameClient(), false);
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(pStorage);
|
||||
|
||||
|
|
Loading…
Reference in a new issue