mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-11 20:11:33 +03:00
Fix autocubemap crashing when not in a level
This commit is contained in:
@@ -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 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user