Skip to content

Commit

Permalink
Merge pull request #68 from cerealpxl/reverse-shutdown
Browse files Browse the repository at this point in the history
Shutdown modules in reverse order.
  • Loading branch information
NoelFB committed Feb 9, 2024
2 parents 0ab13f3 + 0310ad1 commit 8db895d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Framework/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8db895d

Please sign in to comment.