1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

Fix initializing map editor mod settings with more than one level of submods

This commit is contained in:
godric3
2024-02-03 10:36:47 +01:00
parent 5d8b65befd
commit b2cd92d937

View File

@ -78,9 +78,8 @@ void ModSettings::initialize(MapController & c)
auto pieces = qmodName.split("."); auto pieces = qmodName.split(".");
assert(pieces.size() > 1); assert(pieces.size() > 1);
QString qs; pieces.pop_back();
for(int i = 0; i < pieces.size() - 1; ++i) auto qs = pieces.join(".");
qs += pieces[i];
if(addedMods.count(qs)) if(addedMods.count(qs))
{ {