Mod Menu: Fix empty list crash (#6015)
This commit is contained in:
committed by
GitHub
parent
5d63146267
commit
d62e8108fd
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user