From 7b1b9e991d64554e6c9074ae4f818a08d79be36d Mon Sep 17 00:00:00 2001 From: jeuxjeux20 Date: Tue, 13 Jun 2023 23:53:59 +0200 Subject: [PATCH] Swap check operands Co-authored-by: Matt Jones --- .../Desktop/DesktopResourceManagementPluginProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NovelRT/ResourceManagement/Desktop/DesktopResourceManagementPluginProvider.cpp b/src/NovelRT/ResourceManagement/Desktop/DesktopResourceManagementPluginProvider.cpp index 17a8eea67..fea4ba48d 100644 --- a/src/NovelRT/ResourceManagement/Desktop/DesktopResourceManagementPluginProvider.cpp +++ b/src/NovelRT/ResourceManagement/Desktop/DesktopResourceManagementPluginProvider.cpp @@ -12,7 +12,7 @@ namespace NovelRT::ResourceManagement::Desktop DesktopResourceLoader* DesktopResourceManagementPluginProvider::GetResourceLoaderInternal(bool initAssets) { - if (!_resourceLoader->GetIsAssetDBInitialised() && initAssets) + if (initAssets && !_resourceLoader->GetIsAssetDBInitialised()) { _resourceLoader->InitAssetDatabase(); }