[ModList] Do not initialize when running as a dedicated server

This commit is contained in:
sr0 2017-02-21 21:39:58 +01:00
parent 437ee48f8f
commit 6d151f7707

View File

@ -90,6 +90,8 @@ namespace Components
ModList::ModList() ModList::ModList()
{ {
if (Dedicated::Dedicated::IsEnabled()) return;
ModList::CurrentMod = 0; ModList::CurrentMod = 0;
Dvar::Register("cl_modVidRestart", true, Game::dvar_flag::DVAR_FLAG_SAVED, "Perform a vid_restart when loading a mod."); Dvar::Register("cl_modVidRestart", true, Game::dvar_flag::DVAR_FLAG_SAVED, "Perform a vid_restart when loading a mod.");