1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +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(".");
assert(pieces.size() > 1);
QString qs;
for(int i = 0; i < pieces.size() - 1; ++i)
qs += pieces[i];
pieces.pop_back();
auto qs = pieces.join(".");
if(addedMods.count(qs))
{