From 66cfa800beae582c4d447eeeec5276be9f18edbf Mon Sep 17 00:00:00 2001 From: Edward d'Auvergne Date: Mon, 14 May 2018 14:05:04 +0200 Subject: [PATCH] SGEventMgr: Reset the shutdown flag on init as a reset does not call the ctor. This fixes the reset process that was broken by dfed2184f1e280281277030a8a94e3e0dd7dc326. --- simgear/structure/event_mgr.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simgear/structure/event_mgr.cxx b/simgear/structure/event_mgr.cxx index d5ffd01e..12e56d5d 100644 --- a/simgear/structure/event_mgr.cxx +++ b/simgear/structure/event_mgr.cxx @@ -69,6 +69,9 @@ void SGEventMgr::init() return; } + // The event manager dtor and ctor are not called on reset, so reset the flag here. + _shutdown = false; + _inited = true; }