From 6d151f77072126e6343a1816d20280acc6038215 Mon Sep 17 00:00:00 2001 From: sr0 Date: Tue, 21 Feb 2017 21:39:58 +0100 Subject: [PATCH] [ModList] Do not initialize when running as a dedicated server --- src/Components/Modules/ModList.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Components/Modules/ModList.cpp b/src/Components/Modules/ModList.cpp index 9cfcfdd9..3bd99b07 100644 --- a/src/Components/Modules/ModList.cpp +++ b/src/Components/Modules/ModList.cpp @@ -90,6 +90,8 @@ namespace Components ModList::ModList() { + if (Dedicated::Dedicated::IsEnabled()) return; + ModList::CurrentMod = 0; Dvar::Register("cl_modVidRestart", true, Game::dvar_flag::DVAR_FLAG_SAVED, "Perform a vid_restart when loading a mod.");