Merge pull request #648 from aws-lumberyard-dev/mbalfour/legacy-level-load-fix

Changed the level loading code to always set the default mission name.
This commit is contained in:
Mike Balfour
2021-05-07 16:01:57 -05:00
committed by GitHub
@@ -108,10 +108,11 @@ bool CLevelInfo::ReadInfo()
AzFramework::ApplicationRequests::Bus::BroadcastResult(
usePrefabSystemForLevels, &AzFramework::ApplicationRequests::IsPrefabSystemForLevelsEnabled);
// Set up a default game type for legacy code.
m_defaultGameTypeName = "Mission0";
if (usePrefabSystemForLevels)
{
// Set up a default game type for legacy code.
m_defaultGameTypeName = "Mission0";
return true;
}