diff --git a/Framework/App.cs b/Framework/App.cs index 23418f1..1e3b2e6 100644 --- a/Framework/App.cs +++ b/Framework/App.cs @@ -364,7 +364,7 @@ public static void Run(string applicationName, int width, int height, bool fulls Tick(); // shutdown - for (int i = 0; i < modules.Count; i ++) + for (int i = modules.Count - 1; i >= 0; i --) modules[i].Shutdown(); modules.Clear();