Pass Game as const ref to SortPlugins()

It doesn't need to be mutable.
This commit is contained in:
Oliver Hamlet
2022-12-31 18:47:11 +00:00
parent 32c5ce74ff
commit a7e0633d6c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
namespace loot {
std::vector<std::string> SortPlugins(
Game& game,
const Game& game,
const std::vector<std::string>& loadOrder) {
PluginGraph graph;
+1 -1
View File
@@ -31,7 +31,7 @@
#include "api/game/game.h"
namespace loot {
std::vector<std::string> SortPlugins(Game& game,
std::vector<std::string> SortPlugins(const Game& game,
const std::vector<std::string>& loadOrder);
}