Index: ps/trunk/source/ps/GameSetup/GameSetup.h =================================================================== --- ps/trunk/source/ps/GameSetup/GameSetup.h +++ ps/trunk/source/ps/GameSetup/GameSetup.h @@ -78,7 +78,7 @@ class CmdLineArgs; class Paths; -extern std::vector& GetMods(const CmdLineArgs& args, int flags); +extern const std::vector& GetMods(const CmdLineArgs& args, int flags); extern void MountMods(const Paths& paths, const std::vector& mods); /** * Returns true if successful, false if mods changed and restart_engine was called. Index: ps/trunk/source/ps/GameSetup/GameSetup.cpp =================================================================== --- ps/trunk/source/ps/GameSetup/GameSetup.cpp +++ ps/trunk/source/ps/GameSetup/GameSetup.cpp @@ -408,7 +408,7 @@ return ERI_NOT_IMPLEMENTED; } -std::vector& GetMods(const CmdLineArgs& args, int flags) +const std::vector& GetMods(const CmdLineArgs& args, int flags) { const bool init_mods = (flags & INIT_MODS) == INIT_MODS; const bool add_user = !InDevelopmentCopy() && !args.Has("noUserMod");