Skip to content

Commit b72e2a4

Browse files
committed
fix: add early return check when checking mods' SupportedGameVersion
Stop the checks for Prerelease versions will always failing (even if playing a matching Prerelease mod on a Prerelease build). Avoid all checks for matching versions, as none are required in that case.
1 parent 6d738b9 commit b72e2a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

System/DataModule.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ namespace RTE {
494494
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
495495

496496
void DataModule::CheckSupportedGameVersion() const {
497+
if (*m_SupportedGameVersion == c_GameVersion) {
498+
return;
499+
}
500+
497501
static const std::string contactAuthor = "Please contact the mod author or ask for help in the CCCP discord server.";
498502

499503
RTEAssert(m_SupportedGameVersion, m_FileName + " does not specify a supported Cortex Command version, so it is not compatible with this version of Cortex Command (" + c_GameVersion.str() + ").\n\n" + contactAuthor);

0 commit comments

Comments
 (0)