diff --git a/SQCSim-srv/server.cpp b/SQCSim-srv/server.cpp index aabc548..920f366 100644 --- a/SQCSim-srv/server.cpp +++ b/SQCSim-srv/server.cpp @@ -334,11 +334,11 @@ void Server::Run() { delete chmo; } - for (auto& bull : outbox_bullets) - delete bull; + //for (auto& bull : outbox_bullets) + //delete bull; - for (auto& bull : netbull) - delete bull; + //for (auto& bull : netbull) + //delete bull; outbox_bullets.clear(); netbull.clear(); diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index 48515e5..20a8d36 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -1625,7 +1625,7 @@ void Engine::KeyPressEvent(unsigned char key) { break; case 36: // ESC - Quitter if (m_networkgame) - break; + Stop(); if (m_gamestate == GameState::PLAY) { m_gamestate = GameState::PAUSE; }