Skip to content
Permalink
Browse files

Fix DataBaseFileProvider cast (#538)

  • Loading branch information
tebjan authored and xen2 committed Oct 25, 2019
1 parent f636854 commit f678f42443a087cc16d1371a6e8119707abafa0a
Showing with 2 additions and 1 deletion.
  1. +2 −1 sources/engine/Xenko.Engine/Engine/Game.cs
@@ -418,7 +418,8 @@ private void DestroyAssetDatabase()
{
if (databaseFileProvider != null)
{
((DatabaseFileProviderService)Services.GetService<IDatabaseFileProviderService>()).FileProvider = null;
if (Services.GetService<IDatabaseFileProviderService>() is DatabaseFileProviderService dbfp)
dbfp.FileProvider = null;
databaseFileProvider.Dispose();
databaseFileProvider = null;
}

0 comments on commit f678f42

Please sign in to comment.
You can’t perform that action at this time.