Skip to content

Commit 2e412f8

Browse files
committed
Refresh game depots on map unload
1 parent bd735b0 commit 2e412f8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Source.Engine/ModelLoader.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,6 +2324,10 @@ void UnloadModel(Model model) {
23242324
// Let it free data or call destructors..
23252325
Map_UnloadModel(model);
23262326

2327+
#if GMOD_DLL
2328+
fileSystem.Games().Refresh();
2329+
#endif
2330+
23272331
// Remove from file system
23282332
fileSystem.RemoveSearchPath(model.StrName, "GAME");
23292333

0 commit comments

Comments
 (0)