mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 06:07:56 +03:00
Fix autocubemap crashing when not in a level
This commit is contained in:
parent
da44d97951
commit
bdc34e4bad
@ -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 ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user