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:
parent
5d8b65befd
commit
b2cd92d937
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user