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:
@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user