Fix autocubemap crashing when not in a level

This commit is contained in:
ALLEN-PC\acj30 2024-06-21 19:30:40 -05:00 committed by Blixibon
parent da44d97951
commit bdc34e4bad

View File

@ -125,6 +125,12 @@ public:
//Msg("No maps to cubemap with!\n");
//return;
if (C_BasePlayer::GetLocalPlayer() == NULL)
{
Msg( "Must be in a level (or have a loaded map list) to begin autocubemap\n" );
return;
}
// Just do this map
m_AutoCubemapMaps.AddToTail( strdup( g_MapName ) );
}