Browse Source

support restarting server thread

kambala-decapitator/vcmi#27
Andrey Filipenkov 4 years ago
parent
commit
01c17d856f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/filesystem/Filesystem.cpp

+ 1 - 0
lib/filesystem/Filesystem.cpp

@@ -171,6 +171,7 @@ void CResourceHandler::initialize()
 	//    |-config
 
 	globalResourceHandler.rootLoader = vstd::make_unique<CFilesystemList>();
+    knownLoaders.clear();
 	knownLoaders["root"] = globalResourceHandler.rootLoader.get();
 	knownLoaders["saves"] = new CFilesystemLoader("SAVES/", VCMIDirs::get().userSavePath());
 	knownLoaders["config"] = new CFilesystemLoader("CONFIG/", VCMIDirs::get().userConfigPath());