mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Pass Game as const ref to SortPlugins()
It doesn't need to be mutable.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace loot {
|
||||
std::vector<std::string> SortPlugins(
|
||||
Game& game,
|
||||
const Game& game,
|
||||
const std::vector<std::string>& loadOrder) {
|
||||
PluginGraph graph;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user