Mod Menu: Fix empty list crash (#6015)

This commit is contained in:
Shishu the Dragon
2026-01-02 08:54:34 +13:00
committed by GitHub
parent 5d63146267
commit d62e8108fd

View File

@@ -96,6 +96,8 @@ void ModsHandleDragAndDrop(std::vector<std::string>& objectList, int targetIndex
std::vector<std::string> GetEnabledModsFromCVar() {
std::string enabledModsCVarValue = CVAR_ENABLED_MODS_VALUE;
if (enabledModsCVarValue.empty())
return {};
return StringHelper::Split(enabledModsCVarValue, SEPARATOR);
}