mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-28 06:37:58 +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");
|
//Msg("No maps to cubemap with!\n");
|
||||||
//return;
|
//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
|
// Just do this map
|
||||||
m_AutoCubemapMaps.AddToTail( strdup( g_MapName ) );
|
m_AutoCubemapMaps.AddToTail( strdup( g_MapName ) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user