diff --git a/arm9/source/firm.c b/arm9/source/firm.c index b759f9afd..0554a3fef 100755 --- a/arm9/source/firm.c +++ b/arm9/source/firm.c @@ -471,6 +471,8 @@ static void mergeSection0(FirmwareType firmType, u32 firmVersion, bool loadFromS memcmp(moduleList[i].name, ((Cxi *)dst)->exHeader.systemControlInfo.appTitle, sizeof(((Cxi *)dst)->exHeader.systemControlInfo.appTitle)) != 0) error("An external FIRM module is invalid or corrupted."); + dst += dstModuleSize; + maxModuleSize -= dstModuleSize; continue; } }