From 329dd6e93bd1ed1e14cf30aea27dfab804814fce Mon Sep 17 00:00:00 2001 From: BobTheBob Date: Tue, 7 Mar 2023 15:09:13 +0000 Subject: reload datatables before uiscript_reset --- NorthstarDLL/mods/modmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NorthstarDLL/mods/modmanager.cpp b/NorthstarDLL/mods/modmanager.cpp index c4f30386..38305770 100644 --- a/NorthstarDLL/mods/modmanager.cpp +++ b/NorthstarDLL/mods/modmanager.cpp @@ -1010,15 +1010,15 @@ void ModManager::ReloadNecessaryModAssets(bool bDeferred, const ModAssetsToReloa if (pAssetsToReload->bPlaylists || pAssetsToReload->bLocalisation) vReloadCommands.push_back("loadPlaylists"); + if (pAssetsToReload->bDatatables) + vReloadCommands.push_back("ns_cleardatatablecache"); + if (pAssetsToReload->bUiScript) vReloadCommands.push_back("uiscript_reset"); if (pAssetsToReload->bAimAssistSettings) vReloadCommands.push_back("ReloadAimAssistSettings"); - if (pAssetsToReload->bDatatables) - vReloadCommands.push_back("ns_cleardatatablecache"); - if (pAssetsToReload->bModels) spdlog::warn("Need to reload models but can't without a restart!"); -- cgit v1.2.3